|
@@ -114,13 +114,9 @@ void uart_terminal_scene_console_output_on_enter(void* context) {
|
|
|
// Send command with CR+LF or newline '\n'
|
|
// Send command with CR+LF or newline '\n'
|
|
|
if(app->is_command && app->selected_tx_string) {
|
|
if(app->is_command && app->selected_tx_string) {
|
|
|
if(app->TERMINAL_MODE == 1){
|
|
if(app->TERMINAL_MODE == 1){
|
|
|
- // char buffer[240];
|
|
|
|
|
- // snprintf(buffer, 240, "%s\r\n", (app->selected_tx_string));
|
|
|
|
|
- // uart_terminal_uart_tx((unsigned char *)buffer, strlen(buffer));
|
|
|
|
|
uart_terminal_uart_tx(
|
|
uart_terminal_uart_tx(
|
|
|
(uint8_t*)(app->selected_tx_string), strlen(app->selected_tx_string));
|
|
(uint8_t*)(app->selected_tx_string), strlen(app->selected_tx_string));
|
|
|
- uart_terminal_uart_tx((uint8_t*)("\r"), 1);
|
|
|
|
|
- uart_terminal_uart_tx((uint8_t*)("\n"), 1);
|
|
|
|
|
|
|
+ uart_terminal_uart_tx((uint8_t*)("\r\n"), 2);
|
|
|
} else {
|
|
} else {
|
|
|
uart_terminal_uart_tx(
|
|
uart_terminal_uart_tx(
|
|
|
(uint8_t*)(app->selected_tx_string), strlen(app->selected_tx_string));
|
|
(uint8_t*)(app->selected_tx_string), strlen(app->selected_tx_string));
|
|
@@ -149,9 +145,4 @@ void uart_terminal_scene_console_output_on_exit(void* context) {
|
|
|
|
|
|
|
|
// Unregister rx callback
|
|
// Unregister rx callback
|
|
|
uart_terminal_uart_set_handle_rx_data_cb(app->uart, NULL);
|
|
uart_terminal_uart_set_handle_rx_data_cb(app->uart, NULL);
|
|
|
-
|
|
|
|
|
- // Automatically logut when exiting view
|
|
|
|
|
- //if(app->is_command) {
|
|
|
|
|
- // uart_terminal_uart_tx((uint8_t*)("exit\n"), strlen("exit\n"));
|
|
|
|
|
- //}
|
|
|
|
|
}
|
|
}
|