From 2b04033dbf830f0f18649c5c5bc8ff72d62f4531 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Fri, 10 Aug 2018 18:57:44 +0200 Subject: [PATCH] Increased max line length to avoid wrong CRC fixes #8 --- P1Meter.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/P1Meter.ino b/P1Meter.ino index 72d6e5e..fc8f746 100644 --- a/P1Meter.ino +++ b/P1Meter.ino @@ -29,7 +29,7 @@ long mGAS = 0; //Meter reading Gas long prevGAS = 0; -#define MAXLINELENGTH 64 // longest normal line is 47 char (+3 for \r\n\0) +#define MAXLINELENGTH 128 // longest normal line is 47 char (+3 for \r\n\0) char telegram[MAXLINELENGTH]; #define SERIAL_RX D5 // pin for SoftwareSerial RX