From aa11a7227907e5d7afb61218e81b18086af40390 Mon Sep 17 00:00:00 2001 From: Georges Hatem Date: Wed, 1 May 2024 07:10:09 +0300 Subject: [PATCH] LF compatibility for rlawson --- entries/rlawson/src/parser.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entries/rlawson/src/parser.pas b/entries/rlawson/src/parser.pas index 685115d..38c4c64 100644 --- a/entries/rlawson/src/parser.pas +++ b/entries/rlawson/src/parser.pas @@ -65,12 +65,12 @@ procedure ProcessMeasurements(var buffer: array of char; bufferLength: integer; begin temp := currentTempSign * (100 * Integer(buffer[idx]) + 10 * Integer(buffer[idx + 1]) + Integer(buffer[idx + 3]) - 5328); - idx := idx + 6; + idx := idx + 5; // changed from 6 to 5 for compatibility with LF instead of CRLF end else begin temp := currentTempSign * (10 * Integer(buffer[idx]) + Integer(buffer[idx + 2]) - 528); - idx := idx + 5; + idx := idx + 4; // changed from 5 to 4 for compatibility with LF instead of CRLF end; reading := results.Find(city); if reading = nil then