Commit e609c78f authored by Jamie Parkinson's avatar Jamie Parkinson Committed by Me No Dev

Initialize detectedBaudRate to prevent compilation errors (#2101)

parent 04963009
......@@ -56,7 +56,7 @@ void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, in
if(!baud) {
time_t startMillis = millis();
unsigned long detectedBaudRate;
unsigned long detectedBaudRate = 0;
while(millis() - startMillis < timeout_ms && !(detectedBaudRate = uartDetectBaudrate(_uart))) {
yield();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment