Skip to content

Commit 08fb137

Browse files
committed
Add BBB Ubuntu to platform detection.
1 parent cad10e2 commit 08fb137

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Adafruit_GPIO/Platform.py

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ def platform_detect():
4747
# Linux-3.8.13-bone47-armv7l-with-debian-7.4
4848
elif plat.lower().find('armv7l-with-debian') > -1:
4949
return BEAGLEBONE_BLACK
50+
# Handle Beaglebone Black
51+
# Platform output on Ubuntu ~July 2014:
52+
# Linux-3.8.13-bone56-armv7l-with-Ubuntu-14.04-trusty
53+
elif plat.lower().find('armv7l-with-ubuntu') > -1:
54+
return BEAGLEBONE_BLACK
5055
else:
5156
return UNKNOWN
5257

0 commit comments

Comments
 (0)