Skip to content

Commit d39aa4a

Browse files
committed
test for LoRa
1 parent 3f8887a commit d39aa4a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scenes/uart_terminal_scene_console_output.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,13 @@ void uart_terminal_scene_console_output_on_enter(void* context) {
114114
// Send command with CR+LF or newline '\n'
115115
if(app->is_command && app->selected_tx_string) {
116116
if(app->TERMINAL_MODE == 1){
117-
char buffer[240];
118-
snprintf(buffer, 240, "%s\r\n", (app->selected_tx_string));
119-
uart_terminal_uart_tx((unsigned char *)buffer, strlen(buffer));
117+
// char buffer[240];
118+
// snprintf(buffer, 240, "%s\r\n", (app->selected_tx_string));
119+
// uart_terminal_uart_tx((unsigned char *)buffer, strlen(buffer));
120+
uart_terminal_uart_tx(
121+
(uint8_t*)(app->selected_tx_string), strlen(app->selected_tx_string));
122+
uart_terminal_uart_tx((uint8_t*)("\r"), 1);
123+
uart_terminal_uart_tx((uint8_t*)("\n"), 1);
120124
} else {
121125
uart_terminal_uart_tx(
122126
(uint8_t*)(app->selected_tx_string), strlen(app->selected_tx_string));

0 commit comments

Comments
 (0)