Initialize detectedBaudRate to prevent compilation errors (#2101)
This commit is contained in:
parent
04963009ee
commit
e609c78f20
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user