diff --git a/include/Dht.h b/include/Dht.h index 81aafb9..b9f0c8a 100644 --- a/include/Dht.h +++ b/include/Dht.h @@ -1,5 +1,6 @@ #if DHT_SENSOR +#include #include #include diff --git a/platformio.ini b/platformio.ini index ea52b3e..f8264c8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -19,7 +19,7 @@ lib_deps = https://github.com/adafruit/Adafruit_LED_Backpack#1.1.6 adafruit/DHT sensor library@1.3.2 https://git.hodos.ro/libraries/serial-reader.git@^1.0.0 -build_flags = -D DHT_SENSOR=0 -D DEBUG_RAW=0 -D ENABLE_DOORBELL=0 +build_flags = -D DEBUG_RAW=0 check_tool = cppcheck check_flags = --enable=all check_skip_packages = yes @@ -33,6 +33,7 @@ lib_deps = ${env.lib_deps} https://git.hodos.ro/libraries/ha-mqtt.git#2.0.0 https://git.hodos.ro/libraries/wifi.git@^2.0.0 +build_flags = ${env.build_flags} -D DHT_SENSOR=0 -D MQTT_CLEANUP=0 -D ENABLE_DOORBELL=0 upload_port = 192.168.6.161 upload_protocol = espota upload_flags = @@ -40,7 +41,7 @@ upload_flags = [env:huzzah_dev] extends = env:huzzah -build_flags = ${env.build_flags} -D MQTT_CLEANUP=1 +build_flags = ${env.build_flags} -D DHT_SENSOR=1 -D MQTT_CLEANUP=1 -D ENABLE_DOORBELL=1 [env:pro-mini] platform = atmelavr