Skip to content

Commit

Permalink
enocean: added 0 connect retries for unlimited
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Jun 27, 2024
1 parent d7174db commit 4735160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enocean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run(self):
# just try connecting anytime the serial object is not initialized
connect_count = 0
while self._tcm is None and self.alive:
if connect_count >= self._connect_retries:
if self._connect_retries > 0 and connect_count >= self._connect_retries:
self.alive = False
break
if not self.connect():
Expand Down

0 comments on commit 4735160

Please sign in to comment.