Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6988ade

Browse files
committed
Merge pull request adafruit#1 from JohanBas/patch-1
Update platform_detect.py
2 parents 2de5c1d + 3591833 commit 6988ade

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Adafruit_DHT/platform_detect.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,10 @@ def platform_detect(plat=platform.platform()):
3939
# Linux-3.8.13-bone47-armv7l-with-debian-7.4
4040
elif plat.lower().find('armv7l-with-debian') > -1:
4141
return BEAGLEBONE_BLACK
42+
# Handle Beaglebone Black
43+
# Platform output on Ubuntu ~July 2014:
44+
# Linux-3.8.13-bone56-armv7l-with-Ubuntu-14.04-trusty
45+
elif plat.lower().find('armv7l-with-Ubuntu') > -1:
46+
return BEAGLEBONE_BLACK
4247
else:
4348
return UNKNOWN

0 commit comments

Comments
 (0)