1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 11:05:49 +01:00

QC35: added battery threshold

This commit is contained in:
Daniel Dakhno 2022-01-20 15:51:19 +01:00
parent 73ce323288
commit 2fbf0d62e0

View File

@ -69,6 +69,7 @@ public class QC35BaseSupport extends AbstractSerialDeviceSupport {
public boolean connect() { public boolean connect() {
getDeviceProtocol(); getDeviceProtocol();
getDeviceIOThread().start(); getDeviceIOThread().start();
getDevice().setBatteryThresholdPercent((short)15);
return true; return true;
} }