Skip to content

Commit 276e35d

Browse files
authored
Merge pull request #143 from georges-hatem/main
LF compatibility for rlawson
2 parents 9f0b2a8 + 0efc0e2 commit 276e35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/rlawson/src/parser.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ procedure ProcessMeasurements(var buffer: array of char; bufferLength: integer;
6565
begin
6666
temp := currentTempSign * (100 * Integer(buffer[idx]) + 10 *
6767
Integer(buffer[idx + 1]) + Integer(buffer[idx + 3]) - 5328);
68-
idx := idx + 6;
68+
idx := idx + 5; // changed from 6 to 5 for compatibility with LF instead of CRLF
6969
end
7070
else
7171
begin
7272
temp := currentTempSign * (10 * Integer(buffer[idx]) + Integer(buffer[idx + 2]) - 528);
73-
idx := idx + 5;
73+
idx := idx + 4; // changed from 5 to 4 for compatibility with LF instead of CRLF
7474
end;
7575
reading := results.Find(city);
7676
if reading = nil then

0 commit comments

Comments
 (0)