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 c906571 commit 657e056Copy full SHA for 657e056
src/MakoIoT.Device.Services.FileStorage/MakoStreamReader.cs
@@ -385,16 +385,10 @@ public override string ReadLine()
385
return new string(readLineBuff, 0, curPos);
386
}
387
388
- // check for \r and \r\n
+ // skip \r and wait for \n, we can't use Peek() because it's broken :(
389
if (readLineBuff[curPos] == '\r')
390
{
391
- // If the next character is \n eat it
392
- if (Peek() == '\n')
393
- {
394
- _ = Read();
395
- }
396
-
397
- return new string(readLineBuff, 0, curPos);
+ continue;
398
399
400
// move to the next byte
0 commit comments