From e4683b181224ea7898e1d94cd37e0d9eb36a9a5e Mon Sep 17 00:00:00 2001 From: mpember Date: Mon, 26 Aug 2019 15:00:06 +1000 Subject: [PATCH] Correct missing module string for DHT (#444) The DHT module was not being appended to the modules string reported in the SYStoMQTT messages --- main/main.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/main.ino b/main/main.ino index a9fe09c..f3770e3 100644 --- a/main/main.ino +++ b/main/main.ino @@ -897,7 +897,7 @@ void loop() MeasureTempAndHum(); //Addon to measure the temperature with a DHT #endif #ifdef ZsensorINA226 - MeasureINA226(); //Addon to measure the temperature with a DHT + MeasureINA226(); #endif #ifdef ZsensorHCSR501 MeasureHCSR501(); @@ -998,6 +998,9 @@ void stateMeasures(){ #ifdef ZsensorTSL2561 modules = modules + ZsensorTSL2561; #endif + #ifdef ZsensorDHT + modules = modules + ZsensorDHT; + #endif #ifdef ZactuatorONOFF modules = modules + ZactuatorONOFF; #endif