Skip to content

Commit

Permalink
Fix serial command handling of telemetry baud rates. Set min blackbox
Browse files Browse the repository at this point in the history
bad rate to be 19200 to match the confiurator.
  • Loading branch information
hydra committed May 31, 2015
1 parent ca22fb0 commit 98f7549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/io/serial_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,13 +631,13 @@ static void cliSerial(char *cmdline)
portConfig.gps_baudrateIndex = baudRateIndex;
break;
case 2:
if (baudRateIndex != BAUD_AUTO || baudRateIndex > BAUD_115200) {
if (baudRateIndex != BAUD_AUTO && baudRateIndex > BAUD_115200) {
continue;
}
portConfig.telemetry_baudrateIndex = baudRateIndex;
break;
case 3:
if (baudRateIndex < BAUD_9600 || baudRateIndex > BAUD_250000) {
if (baudRateIndex < BAUD_19200 || baudRateIndex > BAUD_250000) {
continue;
}
portConfig.blackbox_baudrateIndex = baudRateIndex;
Expand Down

0 comments on commit 98f7549

Please sign in to comment.