Просмотр исходного кода

add of the ability to change baudrate

cool4uma 3 лет назад
Родитель
Сommit
fafee0f890
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      scenes/uart_terminal_scene_console_output.c

+ 1 - 3
scenes/uart_terminal_scene_console_output.c

@@ -44,13 +44,11 @@ void uart_terminal_scene_console_output_on_enter(void* context) {
     }
     if(0 == strncmp("19200", app->selected_tx_string, strlen("19200")) && app->BAUDRATE != 19200) {
         uart_terminal_uart_free(app->uart);
-        ;
         app->BAUDRATE = 19200;
         app->uart = uart_terminal_uart_init(app);
     }
     if(0 == strncmp("38400", app->selected_tx_string, strlen("38400")) && app->BAUDRATE != 38400) {
         uart_terminal_uart_free(app->uart);
-        ;
         app->BAUDRATE = 38400;
         app->uart = uart_terminal_uart_init(app);
     }
@@ -146,4 +144,4 @@ void uart_terminal_scene_console_output_on_exit(void* context) {
     //if(app->is_command) {
     //    uart_terminal_uart_tx((uint8_t*)("exit\n"), strlen("exit\n"));
     //}
-}
+}