1
0
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:
Joe Merten
2016-12-06 22:02:45 +01:00
parent 4ef3280e6a
commit 15cb659dc3

View File

@ -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));