Add fix for wrong battery level
This commit is contained in:
parent
bfeb48d159
commit
ceca8f0784
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user