add modbus long int support

This commit is contained in:
Stefan Allius
2024-05-08 23:48:41 +02:00
parent 2d176894d3
commit 2ec0a59cd3
3 changed files with 15 additions and 21 deletions

View File

@@ -440,8 +440,8 @@ class SolarmanV5(Message):
if valid == 1 and modbus_msg_len > 4:
# logger.info(f'first byte modbus:{data[14]}')
inv_update = False
for key, update in self.mb.recv_resp(self.db, data[14:-2],
self.node_id):
for key, update, _ in self.mb.recv_resp(self.db, data[14:-2],
self.node_id):
if update:
if key == 'inverter':
inv_update = True