Fix serial port redirection (index ≠ port num) (#16687)

This commit is contained in:
Robby Candra
2020-01-27 11:46:26 +07:00
committed by Scott Lahteine
parent 2325bede8a
commit a0a93e35ae
3 changed files with 10 additions and 11 deletions

View File

@ -29,7 +29,7 @@ static const char errormagic[] PROGMEM = "Error:";
static const char echomagic[] PROGMEM = "echo:";
#if NUM_SERIAL > 1
int8_t serial_port_index = SERIAL_PORT;
int8_t serial_port_index = 0;
#endif
void serialprintPGM(PGM_P str) {