diff --git a/src/BeagleBone/precompile.jl b/src/BeagleBone/precompile.jl index 3dac1e719b565ccb8f4cce9030a17bb1e9ae52c3..93ac201897217122f742278023e26a75f1365f35 100644 --- a/src/BeagleBone/precompile.jl +++ b/src/BeagleBone/precompile.jl @@ -46,15 +46,14 @@ function precompile_bb() # Precompile GPIO gpio = initdev("gpio",Int32(1)) - write!(gpio, (Int32(1), "1"), debug) closedev("gpio", Int32(1)) #read(gpio, ind, args, debug) # TODO activate when pwn is working - # Precompile PWM - #pwm = initdev("pwm", Int32(1)) - #write!(pwm, (Int32(1),"1"), debug) + pwm = initdev("pwm",Int32(1)) + write!(pwm, (Int32(1), "1"), debug) + closedev("pwm", Int32(1)) #Do read/write to file val = true