From a88454dded71d1b6d287174d4486946cc30baa8e Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 27 Jul 2021 18:35:22 +0200 Subject: [PATCH] Disallow pins <= 7 --- DCCEXParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index a2086c9..cbe6519 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -580,7 +580,7 @@ bool DCCEXParser::parseZ(Print *stream, int16_t params, int16_t p[]) case 3: // if (p[0] < 0 || - p[1] > 255 || p[1] < 0 || + p[1] > 255 || p[1] <= 7 || p[2] < 0 || p[2] > 7 ) return false; if (!Output::create(p[0], p[1], p[2], 1))