Skip to content

Commit

Permalink
Formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jsphuebner committed Nov 19, 2024
1 parent f7f2ce7 commit 398099f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modbus4mqtt/modbus_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def poll(self):
lastk = k
# Start polling if we collected _scan_batching items or of we're in the last loop iteration
if ((k - start) >= (self._scan_batching - 1) or i == lastIndex):
end = lastk - start + 2 #read one more in case the last one is 32 bit
# read one more in case the last one is 32 bit
end = lastk - start + 2
try:
values = self._scan_value_range(table, start, end)
for x in range(0, end):
Expand Down

0 comments on commit 398099f

Please sign in to comment.