Sfoglia il codice sorgente

this is causing more trouble than its worth

Chris Mullins 8 anni fa
parent
commit
99732e557e
1 ha cambiato i file con 3 aggiunte e 6 eliminazioni
  1. 3 6
      src/main.cpp

+ 3 - 6
src/main.cpp

@@ -94,12 +94,9 @@ void onPacketSentHandler(uint8_t* packet, const MiLightRemoteConfig& config) {
     result.printTo(output);
 
     mqttClient->sendUpdate(config, deviceId, groupId, output);
-
-    if (changes) {
-      groupState->applyState(result);
-      result.printTo(output);
-      mqttClient->sendState(config, deviceId, groupId, output);
-    }
+    groupState->applyState(result);
+    result.printTo(output);
+    mqttClient->sendState(config, deviceId, groupId, output);
   }
 
   httpServer->handlePacketSent(packet, config);