mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-16 23:30:10 -07:00
Wrap a long line
This commit is contained in:
parent
49350f6fd2
commit
caeb63d598
3
wideq.py
3
wideq.py
@ -700,7 +700,8 @@ class ModelInfo(object):
|
|||||||
for item in self.data['Monitoring']['protocol']:
|
for item in self.data['Monitoring']['protocol']:
|
||||||
key = item['value']
|
key = item['value']
|
||||||
value = 0
|
value = 0
|
||||||
for v in data[item['startByte']:item['startByte'] + item['length']]:
|
for v in data[item['startByte']:item['startByte'] +
|
||||||
|
item['length']]:
|
||||||
value = (value << 8) + v
|
value = (value << 8) + v
|
||||||
decoded[key] = str(value)
|
decoded[key] = str(value)
|
||||||
return decoded
|
return decoded
|
||||||
|
Loading…
x
Reference in New Issue
Block a user