From: Melissa LeBlanc-Williams Date: Sat, 16 Dec 2023 00:39:56 +0000 (-0800) Subject: Merge pull request #756 from how2flow/generic-linux X-Git-Tag: 8.28.0~3 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/346fe916a0dd502527225ba2842ef8c105a45195?hp=2110b0ecfe874b2ad56b54ad5174db8cdff9a95b Merge pull request #756 from how2flow/generic-linux generic_linux: pwmout: Remove duty-cycle reset in deinit flow --- diff --git a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py index 4aca0a2..9bf2602 100644 --- a/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py +++ b/src/adafruit_blinka/microcontroller/generic_linux/sysfs_pwmout.py @@ -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)