8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a59eafb commit cde668dCopy full SHA for cde668d
libraries/ArduinoOTA/src/ArduinoOTA.cpp
@@ -149,13 +149,13 @@ int ArduinoOTAClass::parseInt(){
149
150
String ArduinoOTAClass::readStringUntil(char end){
151
String res = "";
152
- char value;
+ int value;
153
while(true){
154
value = _udp_ota.read();
155
- if(value == '\0' || value == end){
+ if(value <= 0 || value == end){
156
return res;
157
}
158
- res += value;
+ res += (char)value;
159
160
161
0 commit comments