Add fix for wrong battery level
This commit is contained in:
@ -136,6 +136,8 @@ void main(List<String> arguments) async {
|
||||
|
||||
if (batt != null && batt <= 1) {
|
||||
batt = batt * 100;
|
||||
} else if (batt != null && batt > 100) {
|
||||
batt = batt / 100;
|
||||
}
|
||||
|
||||
payload['batt'] = batt?.toInt();
|
||||
|
Reference in New Issue
Block a user