mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-29 02:06:21 +02:00
RPI: Fix reading negative temperature - must be treated as signed short,
not unsigned short
This commit is contained in:
parent
8d453fe233
commit
b058bc10be
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ class Hm300Decode0B(StatusResponse):
|
|||
@property
|
||||
def temperature(self):
|
||||
""" Inverter temperature in °C """
|
||||
return self.unpack('>H', 26)[0]/10
|
||||
return self.unpack('>h', 26)[0]/10
|
||||
|
||||
class Hm300Decode0C(Hm300Decode0B):
|
||||
""" 1121-series mirco-inverters status data """
|
||||
|
|
Loading…
Add table
Reference in a new issue