From: Christopher Alessandro Date: Sun, 19 May 2019 14:11:26 +0000 (-0700) Subject: This line causes a write error when setting up the sysfs device. X-Git-Tag: 1.3.4~1^2~1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/5949e5c39d7cc716c0635f434f793e451888bae7 This line causes a write error when setting up the sysfs device. --- diff --git a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py index 6266fbb..ce20a9f 100644 --- a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py @@ -90,8 +90,8 @@ class PWMOut(object): 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()