Progress in error handling

This commit is contained in:
2020-06-14 23:36:49 +02:00
parent 62a3e06baa
commit 78417e0c8c
4 changed files with 43 additions and 13 deletions

View File

@@ -244,12 +244,12 @@ int main(void)
}
pt1000_status = adc_pt1000_check_error();
global_error_state = pid_status->aborted || !!safety_adc_get_errors() || !!pt1000_status;
global_error_state = pid_status->error_set || !!safety_adc_get_errors() || !!pt1000_status;
menu_wait_request = reflow_menu_handle();
/* Deactivate oven output in case of error! */
if (!pid_status->active || pid_status->aborted || global_error_state)
if (!pid_status->active || global_error_state)
oven_driver_set_power(0U);
handle_shell_uart_input(shell_handle);