Slightly more compact
This commit is contained in:
parent
615ec140e8
commit
6ff6ae3ef7
1 changed files with 1 additions and 3 deletions
|
@ -24,10 +24,8 @@ int patty_bin_kiss_config(int argc,
|
||||||
info->flags |= PATTY_KISS_TNC_FLOW;
|
info->flags |= PATTY_KISS_TNC_FLOW;
|
||||||
info->flow = PATTY_KISS_TNC_FLOW_XONXOFF;
|
info->flow = PATTY_KISS_TNC_FLOW_XONXOFF;
|
||||||
} else if (argv[i][0] >= '0' && argv[i][0] <= '9') {
|
} else if (argv[i][0] >= '0' && argv[i][0] <= '9') {
|
||||||
int baud = atoi(argv[i]);
|
|
||||||
|
|
||||||
info->flags |= PATTY_KISS_TNC_BAUD;
|
info->flags |= PATTY_KISS_TNC_BAUD;
|
||||||
info->baud = baud;
|
info->baud = atoi(argv[i]);
|
||||||
} else {
|
} else {
|
||||||
patty_error_fmt(e, "Invalid KISS TNC device parameter '%s'",
|
patty_error_fmt(e, "Invalid KISS TNC device parameter '%s'",
|
||||||
argv[i]);
|
argv[i]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue