Skip to content

Commit da8cddf

Browse files
committed
Fix to setup.py for pi 3 detection from previous pull.
1 parent 50bde31 commit da8cddf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
["source/_Raspberry_Pi_2_Driver.c", "source/common_dht_read.c", "source/Raspberry_Pi_2/pi_2_dht_read.c", "source/Raspberry_Pi_2/pi_2_mmio.c"],
5353
libraries=['rt'],
5454
extra_compile_args=['-std=gnu99']))
55+
elif pi_version == 3:
56+
extensions.append(Extension("Adafruit_DHT.Raspberry_Pi_2_Driver",
57+
["source/_Raspberry_Pi_2_Driver.c", "source/common_dht_read.c", "source/Raspberry_Pi_2/pi_2_dht_read.c", "source/Raspberry_Pi_2/pi_2_mmio.c"],
58+
libraries=['rt'],
59+
extra_compile_args=['-std=gnu99']))
5560
else:
5661
raise RuntimeError('Detected Pi version that has no appropriate driver available.')
5762
elif platform == platform_detect.BEAGLEBONE_BLACK:

0 commit comments

Comments
 (0)