Merge pull request #8405 from s-hadinger/fix_batterypercentage

Fix BatteryPercentage calculation
This commit is contained in:
Theo Arends 2020-05-10 10:42:37 +02:00 committed by GitHub
commit 2dac2836d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 },