From: Christopher Alessandro Date: Sun, 19 May 2019 02:00:20 +0000 (-0700) Subject: Revert "Commenting these out gets rid of errors and allows the pwm to export." X-Git-Tag: 1.3.3~1^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/34520b447774e7d448f9440d1be962eaab3682f3 Revert "Commenting these out gets rid of errors and allows the pwm to export." This reverts commit f599d177e9baa31e507c6633681dcfc65b73c759. --- 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