Skip to content

Commit 7df4d5d

Browse files
committed
Fix "chargingSwitch[2]: parameter not set"
1 parent f870a03 commit 7df4d5d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

install/accd.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if ! $_INIT; then
115115
if [[ "$exitCode" = [127] ]]; then
116116
. $execDir/logf.sh
117117
logf --export
118-
notif "⚠️ Exit $exitCode; log: \"acc -l tail\""
118+
notif "⚠️ Exit $exitCode; log: acc -l tail"
119119
fi
120120
cd /
121121
echo versionCode=$versionCode

install/batt-interface.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ status() {
126126

127127
local i=
128128
local return1=false
129-
local csw2=${chargingSwitch[2]}
129+
local csw2=${chargingSwitch[2]-}
130130
local iti=${_ITI:-3} # idle test iterations
131131
local curNow=$(cat $currFile)
132132

133133
_status=$(read_status)
134134

135135
if [ -n "${battStatusOverride-}" ]; then
136-
[[ ${chargingSwitch[2]} != */* ]] || csw2="$(cat ${chargingSwitch[2]})"
136+
[[ .${chargingSwitch[2]-} != */* ]] || csw2="$(cat ${chargingSwitch[2]})"
137137
if eq "$battStatusOverride" "Discharging|Idle"; then
138138
[ "$(cat ${chargingSwitch[0]})" != "$csw2" ] || _status=$battStatusOverride
139139
else

module.prop

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
id=acc
22
domain=vr25
33
name=Advanced Charging Controller (ACC)
4-
version=v2024.5.11-rc
5-
versionCode=202405110
4+
version=v2024.5.11.1-rc
5+
versionCode=202405111
66
author=VR25
77
description=Extend your battery's service life by controlling charging current, temperature, and voltage. Any root solution is supported. The installation is always "systemless". Works on Android and KaiOS.
88
updateJson=https://raw.githubusercontent.com/VR-25/acc/master/module.json

0 commit comments

Comments
 (0)