Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hepa-uv): Set the UV pushbutton status led correctly. #759

Merged
merged 4 commits into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading