We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec7ae4e commit c37903cCopy full SHA for c37903c
cores/esp8266/HardwareSerial.cpp
@@ -133,7 +133,7 @@ unsigned long HardwareSerial::testBaudrate()
133
unsigned long HardwareSerial::detectBaudrate(time_t timeoutMillis)
134
{
135
esp8266::polledTimeout::oneShotFastMs timeOut(timeoutMillis);
136
- unsigned long detectedBaudrate;
+ unsigned long detectedBaudrate = 0;
137
while (!timeOut) {
138
if ((detectedBaudrate = testBaudrate())) {
139
break;
0 commit comments