]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
This line causes a write error when setting up the sysfs device.
authorChristopher Alessandro <calessandro0827@gmail.com>
Sun, 19 May 2019 14:11:26 +0000 (07:11 -0700)
committerChristopher Alessandro <calessandro0827@gmail.com>
Sun, 19 May 2019 14:11:26 +0000 (07:11 -0700)
src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py

index 6266fbb1d37807f619991b76090a2dca6a97db38..ce20a9fe228bfcae178781abfa098e2a4a25e9fb 100644 (file)
@@ -90,8 +90,8 @@ class PWMOut(object):
         except IOError as e:
             raise PWMError(e.errno, "Exporting PWM pin: " + e.strerror)
 
         except IOError as e:
             raise PWMError(e.errno, "Exporting PWM pin: " + e.strerror)
 
-        self._set_enabled(False)
-        
+        #self._set_enabled(False) # This line causes a write error when trying to enable
+                
         # Look up the period, for fast duty cycle updates
         self._period = self._get_period()
 
         # Look up the period, for fast duty cycle updates
         self._period = self._get_period()