diff --git a/code/espurna/espurna.ino b/code/espurna/espurna.ino index 24d95adc..7ea3fe37 100644 --- a/code/espurna/espurna.ino +++ b/code/espurna/espurna.ino @@ -21,6 +21,7 @@ along with this program. If not, see . #include "config/all.h" #include +#include // W.T.H. is this include ALSO needed here ?!?!! // ----------------------------------------------------------------------------- // METHODS @@ -303,6 +304,11 @@ void loop() { // Do not run the next services if system is flagged stable if (!systemCheck()) return; + #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE + lightLoop(); + #endif + + buttonLoop(); relayLoop(); ledLoop();