added battery voltages checks in assembly tests

This commit is contained in:
Vincent-FK 2021-04-11 16:48:23 +02:00
parent 8a5fe96fc7
commit dc654d9e65
2 changed files with 11 additions and 18 deletions

View File

@ -99,10 +99,7 @@ function launch_tests_up_until_magnet {
echo " OK"
sync
## Check if battery present
if [[ $(cat /sys/class/power_supply/axp20x-battery/present) == "0" ]]; then
## Launch screen to wait for battery
## Battery tests
echo "TEST BATTERY:"
sync
$PROD_SCREEN_BIN WAIT_BATTERY 2>&1
@ -114,10 +111,6 @@ function launch_tests_up_until_magnet {
echo " FAIL"
test_failed=true
fi
else
echo "TEST BATTERY:"
echo " OK"
fi
sync
## Dump power info from AXP209

View File

@ -4,7 +4,7 @@
#
################################################################################
PRODSCREENS_VERSION = FunKey-ProdScreens-FunKey-1.1.1
PRODSCREENS_VERSION = 428290b
PRODSCREENS_SITE_METHOD = git
PRODSCREENS_SITE = https://github.com/FunKey-Project/FunKey-ProdScreens.git
PRODSCREENS_SITE_LICENSE = GPL-2.1+