Skip to content

Commit

Permalink
Merge pull request #40 from mohamed-arradi/bugfix/fix_battery_level_w…
Browse files Browse the repository at this point in the history
…ithout_case_monterey12_3

V2.2.5 - Fix battery reading on Monterey 12.3 when no case data is provided
  • Loading branch information
mohamed-arradi authored Mar 20, 2022
2 parents 39a9a5d + 5ec35fd commit 8cb1938
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ fi
elif [[ $d =~ $patwithoutCase ]]
then
macAddress=$( echo "${BASH_REMATCH[1]}" | sed 's/ *$//g')
connectedStatus="${BASH_REMATCH[2]}"
vendorID="${BASH_REMATCH[3]}"
data="${BASH_REMATCH[4]}"
vendorID="${BASH_REMATCH[2]}"
data="${BASH_REMATCH[3]}"
firmwareVersion=$(echo ${BASH_REMATCH[6]} | awk '{print $3}')
batterylevelregex="Left Battery Level: (.+%) Right Battery Level: (.+%)"

Expand Down

0 comments on commit 8cb1938

Please # to comment.