Skip to content

Commit

Permalink
add comment explaining safety relay
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Aug 22, 2024
1 parent 553b744 commit d72e73e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/hepa-uv/core/uv_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ class UVMessageHandler {
return;
}

// The safety relay needs to be active (Door Closed, Reed Switch set, and
// Push Button pressed) in order to turn on the UV Light. So Send an
// error if the safety relay is not active when trying to turn on the light.
update_safety_relay_state();
if (light_on && !safety_relay_active) {
if (_timer.is_running()) _timer.stop();
Expand Down

0 comments on commit d72e73e

Please sign in to comment.