Fix shell prompt
This commit is contained in:
parent
310922161a
commit
66d6a76e1a
@ -251,6 +251,8 @@ static shellmatta_retCode_t shell_cmd_pt1000_res_loop(const shellmatta_handle_t
|
|||||||
if (strstr(arg, "--single-line"))
|
if (strstr(arg, "--single-line"))
|
||||||
single_line = true;
|
single_line = true;
|
||||||
|
|
||||||
|
shellmatta_printf(handle, "\r\n");
|
||||||
|
|
||||||
while (run_loop) {
|
while (run_loop) {
|
||||||
uart_receive_data_with_dma(&shell_uart, &data , &len);
|
uart_receive_data_with_dma(&shell_uart, &data , &len);
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
@ -373,7 +375,7 @@ shellmatta_handle_t shell_init(shellmatta_write_t write_func)
|
|||||||
shellmatta_retCode_t ret;
|
shellmatta_retCode_t ret;
|
||||||
|
|
||||||
ret = shellmatta_doInit(&shell, &handle, shell_buffer, sizeof(shell_buffer), history_buffer, sizeof(history_buffer),
|
ret = shellmatta_doInit(&shell, &handle, shell_buffer, sizeof(shell_buffer), history_buffer, sizeof(history_buffer),
|
||||||
"\e[1;32mEnter command:\e[m\r\n", cmd, write_func);
|
"\e[1;32mReflow Controller>\e[m ", cmd, write_func);
|
||||||
if (ret != SHELLMATTA_OK)
|
if (ret != SHELLMATTA_OK)
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user