moki hace 1 semana
padre
commit
e771a0d16a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      firmware/ai_light.ino

+ 2 - 0
firmware/ai_light.ino

@@ -255,6 +255,8 @@ void setMode(String mode) {
   }
   if (mode == "idle") mode = "traffic";
 
+  if (mode == currentMode) return;
+
   currentMode = mode;
   modeStart = millis();