Skip to content

Commit 0d3fde3

Browse files
committed
Change rom variable initial value to None
Easier for typing, but gives the same effect with respect to truthiness
1 parent a3ce1f3 commit 0d3fde3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_onewire/bus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def scan(self):
129129
"""Scan for devices on the bus and return a list of addresses."""
130130
devices = []
131131
diff = 65
132-
rom = False
132+
rom = None
133133
count = 0
134134
for _ in range(0xFF):
135135
rom, diff = self._search_rom(rom, diff)

0 commit comments

Comments
 (0)