Skip to content

Commit

Permalink
Change status behaviour in init and setup
Browse files Browse the repository at this point in the history
  • Loading branch information
aklehm committed Feb 11, 2021
1 parent 60b2670 commit 68c7cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcf8574_io/PCF85.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@


def setup(PCFAdd, smBus, status):
if status:
if status is not None:
with SMBus(smBus) as bus:
bus.write_byte(PCFAdd, status)
elif not status:
else:
with SMBus(smBus) as bus:
bus.write_byte(PCFAdd, 0x00)

Expand Down

0 comments on commit 68c7cc7

Please sign in to comment.