Force reconnect via Serial input

Type "X" into the serial console to force the network to reconnect.
This commit is contained in:
Troy
2023-06-02 08:12:30 -04:00
committed by GitHub
parent 62990cda9c
commit cfc1116249

View File

@@ -117,7 +117,9 @@ void handleSerial()
} else if (next == 'v') {
Serial.print("WLED"); Serial.write(' '); Serial.println(VERSION);
} else if (next == 0xB0) {updateBaudRate( 115200);
} else if (next == 'X') {
forceReconnect = true; // WLEDMM - force reconnect via Serial
}} else if (next == 0xB0) {updateBaudRate( 115200);
} else if (next == 0xB1) {updateBaudRate( 230400);
} else if (next == 0xB2) {updateBaudRate( 460800);
} else if (next == 0xB3) {updateBaudRate( 500000);