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.
2 parents 9f0b2a8 + 0efc0e2 commit 276e35dCopy full SHA for 276e35d
entries/rlawson/src/parser.pas
@@ -65,12 +65,12 @@ procedure ProcessMeasurements(var buffer: array of char; bufferLength: integer;
65
begin
66
temp := currentTempSign * (100 * Integer(buffer[idx]) + 10 *
67
Integer(buffer[idx + 1]) + Integer(buffer[idx + 3]) - 5328);
68
- idx := idx + 6;
+ idx := idx + 5; // changed from 6 to 5 for compatibility with LF instead of CRLF
69
end
70
else
71
72
temp := currentTempSign * (10 * Integer(buffer[idx]) + Integer(buffer[idx + 2]) - 528);
73
- idx := idx + 5;
+ idx := idx + 4; // changed from 5 to 4 for compatibility with LF instead of CRLF
74
end;
75
reading := results.Find(city);
76
if reading = nil then
0 commit comments