Skip to content

Commit

Permalink
uart: on pin_reset, set mode to passive if required
Browse files Browse the repository at this point in the history
  • Loading branch information
fivesixzero committed Dec 29, 2020
1 parent 23be73b commit a5fd666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adafruit_pm25/uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ def pin_reset(self):
time.sleep(0.01)
self._reset_pin.value = True
time.sleep(3)
if self._mode == "passive":
self.cmd_mode_passive()

def pin_sleep(self):
"""
Expand Down

0 comments on commit a5fd666

Please sign in to comment.