Skip to content

Commit bfac0ab

Browse files
committed
Patching stream reading
1 parent d0d1f37 commit bfac0ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Thermometres/Yun-ds18b20/Yun-ds18b20.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ void loop(void)
5555

5656
Process getTimeStampProcess;
5757
getTimeStampProcess.runShellCommand(F("date -R"));
58+
delay(10);
5859
String timeStamp=String("");
5960
while (getTimeStampProcess.available() > 0) {
60-
timeStamp.concat(String(getTimeStampProcess.readStringUntil("\n")));
61+
timeStamp.concat(String(getTimeStampProcess.readString()));
6162
}
6263
timeStamp.trim();
6364
Serial.println("timeStamp : "+timeStamp);

0 commit comments

Comments
 (0)