adafruit / Adafruit_CircuitPython_DHT

CircuitPython support for DHT11 and DHT22 type temperature/humidity devices
MIT License
179 stars 62 forks source link

fix: remove print(`De-initializing self.pulse_in`) when exit #90

Closed xgqfrms closed 1 year ago

xgqfrms commented 1 year ago

fix: remove print(De-initializing self.pulse_in) when exit

# ...
    def exit(self) -> None:
        """Cleans up the PulseIn process. Must be called explicitly"""
        if self._use_pulseio:
-           print("De-initializing self.pulse_in")
            self.pulse_in.deinit()
# ...

image

refs

https://github.com/adafruit/Adafruit_CircuitPython_DHT/blob/main/adafruit_dht.py#L92

tekktrik commented 1 year ago

Would you be interested in submitting a PR to remove that line?

xgqfrms commented 1 year ago

Yes, I would like to do that.

https://github.com/adafruit/Adafruit_CircuitPython_DHT/pull/91