]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge pull request #756 from how2flow/generic-linux
authorMelissa LeBlanc-Williams <melissa@adafruit.com>
Sat, 16 Dec 2023 00:39:56 +0000 (16:39 -0800)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 00:39:56 +0000 (16:39 -0800)
generic_linux: pwmout: Remove duty-cycle reset in deinit flow

src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py

index 4aca0a2785911a376aad30958b85e96f09458789..9bf26025d76406c3ae27f12e0a943583c6a9b5c8 100644 (file)
@@ -158,7 +158,6 @@ class PWMOut:
     def deinit(self):
         """Deinit the sysfs PWM."""
         if self._channel is not None:
-            self.duty_cycle = 0
             try:
                 channel_path = os.path.join(
                     self._sysfs_path, self._channel_path.format(self._channel)