From 34520b447774e7d448f9440d1be962eaab3682f3 Mon Sep 17 00:00:00 2001 From: Christopher Alessandro Date: Sat, 18 May 2019 19:00:20 -0700 Subject: [PATCH] Revert "Commenting these out gets rid of errors and allows the pwm to export." This reverts commit f599d177e9baa31e507c6633681dcfc65b73c759. --- .../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 915c318..6266fbb 100644 --- a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py @@ -90,12 +90,12 @@ class PWMOut(object): except IOError as e: raise PWMError(e.errno, "Exporting PWM pin: " + e.strerror) - #self._set_enabled(False) + self._set_enabled(False) # Look up the period, for fast duty cycle updates self._period = self._get_period() - #self.duty_cycle = 0 + self.duty_cycle = 0 # set frequency self.frequency = freq -- 2.49.0