Skip to content

Commit 8901c07

Browse files
authored
Merge pull request #32 from ev3dev-lang-java/feature/#31
Add support for jessie ev3 battery
2 parents d0a7a8a + 0c957f0 commit 8901c07

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/platform.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PLATFORM="unknown"
44

55
#1. Detect platform
6-
if [ -d "$BATT_EV3" ]; then
6+
if [ -d "$BATT_EV3_STRETCH" ] || [ -d "$BATT_EV3_JESSIE" ]; then
77
PLATFORM="ev3"
88

99
elif [ -d "$BATT_BRICKPI" ]; then

modules/vars.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ TOTAL=40
2929
BT_BRICKPI_PKG="libbluetooth-dev"
3030

3131
# platform detection
32-
BATT_EV3="/sys/class/power_supply/lego-ev3-battery"
32+
BATT_EV3_STRETCH="/sys/class/power_supply/lego-ev3-battery"
33+
BATT_EV3_JESSIE="/sys/class/power_supply/legoev3-battery"
3334
BATT_BRICKPI="/sys/class/power_supply/brickpi-battery"
3435
BATT_BRICKPI3="/sys/class/power_supply/brickpi3-battery"
3536
BATT_PISTORMS="/sys/class/power_supply/pistorms-battery"

0 commit comments

Comments
 (0)