Forráskód Böngészése

expand state out to group 4 (thanks @hencou)

Christopher Mullins 8 éve
szülő
commit
f6a66ff599
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      lib/MiLightState/GroupStateStore.cpp

+ 1 - 1
lib/MiLightState/GroupStateStore.cpp

@@ -29,7 +29,7 @@ GroupState& GroupStateStore::set(const BulbId &id, const GroupState& state) {
     const MiLightRemoteConfig* remote = MiLightRemoteConfig::fromType(id.deviceType);
     BulbId individualBulb(id);
 
-    for (size_t i = 1; i < remote->numGroups; i++) {
+    for (size_t i = 1; i <= remote->numGroups; i++) {
       individualBulb.groupId = i;
       set(individualBulb, state);
     }