use sensor based on precompile directive
This commit is contained in:
parent
2d4dc652c2
commit
fdc9dd452d
@ -18,6 +18,7 @@ lib_deps =
|
||||
lib_extra_dirs =
|
||||
../libraries
|
||||
~/Arduino/libraries
|
||||
build_flags = -D DHT_SENSOR=0
|
||||
upload_protocol = stk500v1
|
||||
upload_flags =
|
||||
-P$UPLOAD_PORT
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
// Pins
|
||||
#define SENDER PIN_B2
|
||||
|
||||
#if !DHT
|
||||
#if !DHT_SENSOR
|
||||
TempSensor &tempSensor = *(new Tmp36Sensor(TEMP_SENSOR));
|
||||
#else
|
||||
TempSensor& tempSensor = *(new Dht22Sensor(TEMP_SENSOR));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user