Skip to content

Commit

Permalink
Fixed white channel bug in override update
Browse files Browse the repository at this point in the history
  • Loading branch information
dwight9339 committed Dec 21, 2024
1 parent 38144bd commit 0ecfb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_100_aquarium.ino
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void UpdateAquariumBrightness() {
// Handle override
if (Settings->free_eb0.aquarium_light_settings.override_enabled) {
uint8_t* override_color = Settings->free_eb0.aquarium_light_settings.override_color;
uint8_t channels[5] = {override_color[0], override_color[1], override_color[2], override_color[3], override_color[3]};
uint8_t channels[5] = {override_color[0], override_color[1], override_color[2], override_color[3], 0};
light_controller.changeChannels(channels, true);
AddLog(LOG_LEVEL_DEBUG, PSTR("Aquarium override enabled: Setting color RGBW(%d,%d,%d,%d)"),
override_color[0], override_color[1], override_color[2], override_color[3]);
Expand Down

0 comments on commit 0ecfb03

Please sign in to comment.