Fix BatteryPercentage calculation

This commit is contained in:
Stephan Hadinger 2020-05-10 10:18:23 +02:00
parent 860db1b1d3
commit de40260f3e
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ const Z_AttributeConverter Z_PostProcess[] PROGMEM = {
{ Zuint16, Cx0001, 0x0000, Z(MainsVoltage), &Z_Copy },
{ Zuint8, Cx0001, 0x0001, Z(MainsFrequency), &Z_Copy },
{ Zuint8, Cx0001, 0x0020, Z(BatteryVoltage), &Z_FloatDiv10 },
{ Zuint8, Cx0001, 0x0021, Z(BatteryPercentage), &Z_Copy },
{ Zuint8, Cx0001, 0x0021, Z(BatteryPercentage), &Z_FloatDiv2 },
// Device Temperature Configuration cluster
{ Zint16, Cx0002, 0x0000, Z(CurrentTemperature), &Z_Copy },