Add color to flag monitor command and set oven output to 0
This commit is contained in:
parent
b65d94b0e8
commit
6498aaf8b8
@ -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)
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user