Skip to content

Commit

Permalink
small fix to stop crash on unrecognized packets (esp8266#4092)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkillewald authored and devyte committed Jan 4, 2018
1 parent a19ff35 commit fb7c519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ArduinoOTA/ArduinoOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int ArduinoOTAClass::parseInt(){
for(index = 0; index < sizeof(data); ++index){
value = _udp_ota->peek();
if(value < '0' || value > '9'){
data[index++] = '\0';
data[index] = '\0';
return atoi(data);
}
data[index] = _udp_ota->read();
Expand Down

0 comments on commit fb7c519

Please sign in to comment.