fixes
parent
f881a11388
commit
6ac14fe773
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue