Hey guys,
During compiling DHT usermod I get following error:
In file included from wled00\usermods_list.cpp:81:
wled00\../usermods/DHT/usermod_dht.h: In member function 'virtual void UsermodDHT::loop()':
wled00\../usermods/DHT/usermod_dht.h:144:67: error: expected primary-expression before ';' token
144 | nextReadTime = millis() + USERMOD_DHT_MEASUREMENT_INTERVAL;
| ^
wled00\../usermods/DHT/usermod_dht.h:171:75: error: expected primary-expression before ')' token
171 | if (((millis() - lastReadTime) > 10*USERMOD_DHT_MEASUREMENT_INTERVAL)) {
| ^
*** [.pio\build\d1_mini\src\usermods_list.cpp.o] Error 1
How in the readme written I copied “platformio_override.ini” into the root dir. and added:
#define USERMOD_DHT
#define USERMOD_DHT_DHTTYPE 22
#define USERMOD_DHT_PIN 4
#define USERMOD_DHT_CELSIUS
#define USERMOD_DHT_MEASUREMENT_INTERVAL
#define USERMOD_DHT_MQTT
#define USERMOD_DHT_STATS
to “my_config.h”
Then I got a missing lib “DHT_blocking.h”.
This file and .cpp I copied into the wled00 directory, because at PIO Home → Libraries → Search no “DHT_blocking” will be found.
This missing lib message disappeared, but I got now this upper error message.
@blazoncek Any idea?