 
 // Fill all LEDs with the same color. This mode does not have an additional parameter.
 void modeSolid() {
-    fill_solid(&leds[0], NUM_LEDS, currentRGB());
+    fill_solid(&leds[0], NUM_LEDS, state.rgb);
 }
 
 // Fill all LEDs with a solid color on the temperature scale.

    uint8_t temperature;
    void (*effectFunc)();
    char* effect;
    uint8_t r;
    uint8_t g;
    uint8_t b;
} state;

// MQTT client handles

        Serial.println("INFO: connected");
        mqtt_publish_state();
        mqtt_client.subscribe(MQTT_LIGHT_COMMAND_TOPIC);
        mqtt_client.subscribe(MQTT_BRIGHTNESS_COMMAND_TOPIC);
        mqtt_client.subscribe(MQTT_RGB_COMMAND_TOPIC);
    } else {
        Serial.print("ERROR: failed, rc=");
        Serial.print(mqtt_client.state());
