]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Revert "Commenting these out gets rid of errors and allows the pwm to export."
authorChristopher Alessandro <calessandro0827@gmail.com>
Sun, 19 May 2019 02:00:20 +0000 (19:00 -0700)
committerChristopher Alessandro <calessandro0827@gmail.com>
Sun, 19 May 2019 02:00:20 +0000 (19:00 -0700)
This reverts commit f599d177e9baa31e507c6633681dcfc65b73c759.

src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py

index 915c3182b22d4b2486c33e01381c6455782176bf..6266fbb1d37807f619991b76090a2dca6a97db38 100644 (file)
@@ -90,12 +90,12 @@ 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)
         
         # 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()
 
-        #self.duty_cycle = 0
+        self.duty_cycle = 0
 
         # set frequency
         self.frequency = freq
 
         # set frequency
         self.frequency = freq