diff options
Diffstat (limited to 'ncpd/main.cc')
-rw-r--r-- | ncpd/main.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ncpd/main.cc b/ncpd/main.cc index f1f7f14..4771744 100644 --- a/ncpd/main.cc +++ b/ncpd/main.cc @@ -288,7 +288,10 @@ main(int argc, char **argv) autoexit = true; break; case 'b': - baudRate = atoi(optarg); + if (!strcmp(optarg, "auto")) + baudRate = -1; + else + baudRate = atoi(optarg); break; case 's': serialDevice = optarg; |