From 369b27a078b26ca990427529d14beeedbba8b46e Mon Sep 17 00:00:00 2001
From: mgreiff <marcusgreiff.93@hotmail.com>
Date: Mon, 15 Apr 2019 20:29:44 +0200
Subject: [PATCH] add precompilatoin of the PWM read/write

---
 src/BeagleBone/precompile.jl | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/BeagleBone/precompile.jl b/src/BeagleBone/precompile.jl
index 3dac1e7..93ac201 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
-- 
GitLab