bugfix: i2cget had -y and -f flags reversed
parent
e206eb8998
commit
0e7d02bbb1
|
|
@ -38,7 +38,7 @@ function shutdownCommand() {
|
||||||
|
|
||||||
# @return ... 0,1 as return value
|
# @return ... 0,1 as return value
|
||||||
function isBatteryAvailable() {
|
function isBatteryAvailable() {
|
||||||
local flags=$(i2cget -f -y 0 0x34 0x01)
|
local flags=$(i2cget -y -f 0 0x34 0x01)
|
||||||
if (((( $flags&0x20 ) >>5 ) == $TRUE )); then
|
if (((( $flags&0x20 ) >>5 ) == $TRUE )); then
|
||||||
echo "1"
|
echo "1"
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue