       }
       setParsedRGB();
     }
+  } else {
+    // finish fade by setting final toRGB
+    if (fadeActive) {
+      memcpy(curRGB, toRGB, sizeof(toRGB));
+      setParsedRGB();
+    }
+    fadeActive = false;
   }
 }
 

int value = 0;
String thisMAC = WiFi.macAddress();
String clientID = "RGB_controller_" + thisMAC;

String domain = "RGB-LED-control";


        Serial.println(subscriptions[i]);
      #endif
    }
    return true;
  } else {
    return false;
  }
}

void disableLights() {
  analogWrite(r1Pin, gamma10[0]);
  analogWrite(g1Pin, gamma10[0]);
  analogWrite(b1Pin, gamma10[0]);
}

void setupOTA()
