Add fix for wrong battery level

This commit is contained in:
Yehor Vialov 2025-02-06 14:52:22 +02:00
parent bfeb48d159
commit ceca8f0784

View File

@ -136,6 +136,8 @@ void main(List<String> arguments) async {
if (batt != null && batt <= 1) { if (batt != null && batt <= 1) {
batt = batt * 100; batt = batt * 100;
} else if (batt != null && batt > 100) {
batt = batt / 100;
} }
payload['batt'] = batt?.toInt(); payload['batt'] = batt?.toInt();