Permalink
Browse files

fixed platform detection

  • Loading branch information...
Himura2la committed May 17, 2017
1 parent 71768b6 commit 08402d398e87f05993e937fca0ca4aa76449b393
Showing with 3 additions and 3 deletions.
  1. +3 −3 Adafruit_DHT/platform_detect.py
@@ -95,13 +95,13 @@ def pi_version():
if not match:
# Couldn't find the hardware, assume it isn't a pi.
return None
if match.group(1) == 'BCM2708':
if match.group(1) == 'BCM2835':
# Pi 1
return 1
elif match.group(1) == 'BCM2709':
elif match.group(1) == 'BCM2836':
# Pi 2
return 2
elif match.group(1) == 'BCM2835':
elif match.group(1) == 'BCM2837':
# Pi 3
return 3
else:

0 comments on commit 08402d3

Please sign in to comment.