move uart_speed to conn struct and display baudrate only for real UART

This commit is contained in:
Philippe Teuwen 2019-04-27 01:15:52 +02:00
commit 12937884f6
5 changed files with 11 additions and 15 deletions

View file

@ -47,6 +47,8 @@ typedef struct {
bool send_with_crc_on_fpc;
// "Session" flag, to tell via which interface next msgs are sent: USB or FPC USART
bool send_via_fpc;
// To memorise baudrate, we don't want to call get_speed systematically
uint32_t uart_speed;
} communication_arg_t;
extern communication_arg_t conn;