fixes
parent
f881a11388
commit
6ac14fe773
|
|
@ -61,7 +61,7 @@ function getChargeCurrent() {
|
|||
# shuts the system down if too less voltage
|
||||
function verifyBatteryVoltage() {
|
||||
echo "$(isBatteryAvailable)"
|
||||
if [ "$(isBatteryAvailable)" -eq "1" ] ; then
|
||||
if [ "$?" -eq "1" ] ; then
|
||||
local voltage=$(getBatteryVoltage)
|
||||
local chargeCurrent=$(getChargeCurrent)
|
||||
echo "Voltage: $voltage"
|
||||
|
|
|
|||
Loading…
Reference in New Issue