Skip to content

Commit

Permalink
Merge pull request #507 from Paciente8159/system-menu-alarm-screen-co…
Browse files Browse the repository at this point in the history
…ndition

improved system menu alarm condition
  • Loading branch information
Paciente8159 authored Sep 20, 2023
2 parents 2ddfae3 + ab15f17 commit 412a94f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uCNC/src/modules/system_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void system_menu_action(uint8_t action)
int16_t currentindex = g_system_menu.current_index;

// kill alarm is active
if (cnc_get_exec_state(EXEC_ALARM))
if (cnc_get_exec_state(EXEC_INTERLOCKING_FAIL) || cnc_has_alarm())
{
// never go idle
g_system_menu.action_timeout = UINT32_MAX;
Expand Down Expand Up @@ -404,7 +404,7 @@ void system_menu_render(void)
g_system_menu.flags &= ~SYSTEM_MENU_MODE_REDRAW;
uint8_t item_index = 0;

if (cnc_get_exec_state(EXEC_ALARM))
if (cnc_get_exec_state(EXEC_INTERLOCKING_FAIL) || cnc_has_alarm())
{
system_menu_render_alarm();
return;
Expand Down

0 comments on commit 412a94f

Please sign in to comment.