mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 14:32:54 +01:00
adjusted battery threshold
This commit is contained in:
parent
457147bcca
commit
961eb1c4ce
@ -480,7 +480,7 @@ public class QHybridSupport extends QHybridBaseSupport {
|
|||||||
if (request instanceof BatteryLevelRequest) {
|
if (request instanceof BatteryLevelRequest) {
|
||||||
gbDevice.setBatteryLevel(((BatteryLevelRequest) request).level);
|
gbDevice.setBatteryLevel(((BatteryLevelRequest) request).level);
|
||||||
|
|
||||||
gbDevice.setBatteryThresholdPercent((short) 25);
|
gbDevice.setBatteryThresholdPercent((short) 2);
|
||||||
|
|
||||||
GBDeviceEventBatteryInfo batteryInfo = new GBDeviceEventBatteryInfo();
|
GBDeviceEventBatteryInfo batteryInfo = new GBDeviceEventBatteryInfo();
|
||||||
batteryInfo.level = gbDevice.getBatteryLevel();
|
batteryInfo.level = gbDevice.getBatteryLevel();
|
||||||
|
Loading…
Reference in New Issue
Block a user