diff options
author | John Klug <john.klug@multitech.com> | 2021-03-26 08:39:10 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2021-06-23 04:16:07 -0500 |
commit | 008257e9bc01045f117539a5fca9c2c7939b1cc9 (patch) | |
tree | b124c969614c5ec3c44af0c4e01b4e58360f3e63 /recipes-bsp/multitech/mts-io/mts-io.mtcap.init | |
parent | fc945d92000e0755d0530297caccd6c04aeefb7b (diff) | |
download | meta-multitech-008257e9bc01045f117539a5fca9c2c7939b1cc9.tar.gz meta-multitech-008257e9bc01045f117539a5fca9c2c7939b1cc9.tar.bz2 meta-multitech-008257e9bc01045f117539a5fca9c2c7939b1cc9.zip |
Fix bugs in init script, add mts-io-skipcharge package for development and testing
Diffstat (limited to 'recipes-bsp/multitech/mts-io/mts-io.mtcap.init')
-rw-r--r-- | recipes-bsp/multitech/mts-io/mts-io.mtcap.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init index ff0e947..f8e611f 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init +++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init @@ -16,7 +16,6 @@ set_hw_name() { hw_name=(${hw//-/ }) } -batcap=$(mts-io-sysfs show capability/battery) set_batt_charge() { if [[ $batcap == 1 ]] ; then i2cset -m 0x60 -y 0 0x09 0x01 0x20 @@ -113,7 +112,7 @@ wait_for_supercap() { return fi if ((SUPERCAPFULL != 1)) ; then - break + return fi t0=$(gettime) maxwait=$(awk "BEGIN {print ${t0}+${SUPERCAPFULL_MAXWAIT}}") @@ -151,6 +150,7 @@ case $1 in # Point the firmware API at our i2c EEPROMs echo -n ${i2c} > /sys/module/firmware_class/parameters/path modprobe mts_io + batcap=$(mts-io-sysfs show capability/battery) setwificap set_batt_charge wifi_init1 |