master
Bryan 2021-01-01 19:54:36 -06:00
parent f881a11388
commit 6ac14fe773
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ function getChargeCurrent() {
# shuts the system down if too less voltage # shuts the system down if too less voltage
function verifyBatteryVoltage() { function verifyBatteryVoltage() {
echo "$(isBatteryAvailable)" echo "$(isBatteryAvailable)"
if [ "$(isBatteryAvailable)" -eq "1" ] ; then if [ "$?" -eq "1" ] ; then
local voltage=$(getBatteryVoltage) local voltage=$(getBatteryVoltage)
local chargeCurrent=$(getChargeCurrent) local chargeCurrent=$(getChargeCurrent)
echo "Voltage: $voltage" echo "Voltage: $voltage"