Improve coding and add color to shell output

This commit is contained in:
Mario Hüttel 2020-02-12 22:02:18 +01:00
parent 13c528163d
commit c6dd4e735c
2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,6 @@ int main()
setup_nvic_priorities();
systick_setup();
//setup_dma(&adc_results, 3);
adc_pt1000_setup_meas();
digio_setup_default_all();

View File

@ -29,7 +29,7 @@ static shellmatta_retCode_t shell_cmd_ver(const shellmatta_handle_t handle,
(void)length;
shellmatta_printf(handle, "Reflow Oven Controller Firmware " xstr(GIT_VER) "\r\n"
"Compiled: " __DATE__);
"Compiled: " __DATE__ " at " __TIME__);
return SHELLMATTA_OK;
}
@ -207,7 +207,7 @@ shellmatta_handle_t shell_init(void)
shellmatta_retCode_t ret;
ret = shellmatta_doInit(&shell, &handle, shell_buffer, sizeof(shell_buffer), history_buffer, sizeof(history_buffer),
"Enter command:\r\n", cmd, write_shell_callback);
"\e[1;32mEnter command:\e[m\r\n", cmd, write_shell_callback);
if (ret != SHELLMATTA_OK)
handle = NULL;