mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 01:09:47 +01:00
Fossil Hybrid HR: Lower battery level warning threshold to 10%
This commit is contained in:
parent
d088c3d63f
commit
2d96328d1b
@ -59,7 +59,7 @@ public class ConfigurationGetRequest extends FileEncryptedLookupAndGetRequest im
|
||||
}else if(item instanceof ConfigurationPutRequest.BatteryConfigItem){
|
||||
device.setBatteryLevel((short) ((ConfigurationPutRequest.BatteryConfigItem) item).getBatteryPercentage());
|
||||
device.setBatteryVoltage(((ConfigurationPutRequest.BatteryConfigItem) item).getBatteryVoltage() / 1000f);
|
||||
device.setBatteryThresholdPercent((short) 15);
|
||||
device.setBatteryThresholdPercent((short) 10);
|
||||
|
||||
GBDeviceEventBatteryInfo batteryInfo = new GBDeviceEventBatteryInfo();
|
||||
batteryInfo.level = (short) ((ConfigurationPutRequest.BatteryConfigItem) item).getBatteryPercentage();
|
||||
|
Loading…
Reference in New Issue
Block a user