bugfix: i2cget had -y and -f flags reversed

master
Bryan 2021-01-01 22:42:31 -06:00
parent e206eb8998
commit 0e7d02bbb1
1 changed files with 1 additions and 1 deletions

View File

@ -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