From 7be2c2cafa32cd28b5c0c460c329fa59a70ebcba Mon Sep 17 00:00:00 2001 From: Thomas van der Westen Date: Sun, 6 Mar 2016 15:41:33 +0100 Subject: [PATCH] Change input length to 18 lines instead of 19 lines Signed-off-by: Thomas van der Westen --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 29b1373..bab7387 100644 --- a/index.js +++ b/index.js @@ -66,7 +66,7 @@ P1Reader.prototype.parsePackage = function(rawData) { data.electricity.date = new Date(); var lines = rawData.split("\r\n"); // Not a full package (not enough lines) - if(lines.length < 19) { + if(lines.length < 18) { return null; }