BatteryService: implement cycleModes function

This commit is contained in:
Damian D'Souza
2025-10-12 20:35:42 +02:00
parent 586f2db53d
commit 7fd5e952d7
+6
View File
@@ -63,6 +63,12 @@ Singleton {
BatteryService.applyChargingMode()
}
function cycleModes() {
// Cycles charging modes from full to lifespan while skipping disabled
const nextMode = (chargingMode % 3) + 1
setChargingMode(nextMode)
}
function applyChargingMode(hideToast = false) {
let command = [batterySetterScript]