add modbus long int support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user