mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
added warning if applied baudrate differs from opts.baud on startup
This commit is contained in:
@ -1616,6 +1616,10 @@ main(int argc, char *argv[])
|
||||
init_history();
|
||||
#endif
|
||||
|
||||
r = term_get_baudrate(tty_fd, NULL);
|
||||
if ( r != opts.baud )
|
||||
fd_printf(STO, "WARNING: Desired baudrate is %d but applied baudrate is %d; this might depend upon your OS and/or hardware limitations.\r\n\r\n", opts.baud, r);
|
||||
|
||||
#ifndef NO_HELP
|
||||
fd_printf(STO, "Type [C-%c] [C-%c] to see available commands\r\n\r\n",
|
||||
KEYC(opts.escape), KEYC(KEY_HELP));
|
||||
|
Reference in New Issue
Block a user