Add color to flag monitor command and set oven output to 0

This commit is contained in:
Mario Hüttel 2020-07-28 23:26:28 +02:00
parent b65d94b0e8
commit 6498aaf8b8
2 changed files with 2 additions and 1 deletions

View File

@ -217,6 +217,7 @@ int main(void)
safety_controller_handle(); safety_controller_handle();
oven_driver_set_power(0);
oven_driver_apply_power_level(); oven_driver_apply_power_level();
if (menu_wait_request) if (menu_wait_request)

View File

@ -386,7 +386,7 @@ static shellmatta_retCode_t shell_cmd_read_flags(const shellmatta_handle_t handl
continue; continue;
} }
shellmatta_printf(handle, "%2lu) %-20s\t[%s]\r\n", i+1, name, (flag ? "ERR" : "OK")); shellmatta_printf(handle, "%2lu) %-20s\t[%s]\r\n", i+1, name, (flag ? "\e[1;31mERR\e[m" : "\e[32mOK\e[m"));
} }
return SHELLMATTA_OK; return SHELLMATTA_OK;