Skip to content

Commit

Permalink
fix(hepa-uv): Set the UV pushbutton status led correctly. (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 authored Mar 19, 2024
1 parent d4db0b2 commit a6476b3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions include/hepa-uv/core/uv_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,14 @@ class UVMessageHandler {
};
can_client.send_can_message(can::ids::NodeId::host, resp);
}
led_control_client.send_led_control_message(
// Set the push button LED's to user intervention (blue)
led_control_task_messages::PushButtonLED(UV_BUTTON, 0, 0, 50,
0));
// Set the push button LED's to user intervention (blue) when
// attempting to turn on the uv light while the door is opened or
// reed switch is not set.
if (light_on) {
led_control_client.send_led_control_message(
led_control_task_messages::PushButtonLED(UV_BUTTON, 0, 0,
50, 0));
}
uv_push_button = false;
uv_light_on = false;
return;
Expand Down

0 comments on commit a6476b3

Please sign in to comment.