From 5949e5c39d7cc716c0635f434f793e451888bae7 Mon Sep 17 00:00:00 2001 From: Christopher Alessandro Date: Sun, 19 May 2019 07:11:26 -0700 Subject: [PATCH] This line causes a write error when setting up the sysfs device. --- .../microcontroller/generic_linux/sysfs_pwmout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.49.0