From babdad06cab2ae3148d9c7fbcb08dadbba55fdf4 Mon Sep 17 00:00:00 2001 From: FrightRisk <37218136+FrightRisk@users.noreply.github.com> Date: Mon, 26 Oct 2020 13:28:47 -0400 Subject: [PATCH] Remove commands that were called twice --- DCCEXParser.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/DCCEXParser.cpp b/DCCEXParser.cpp index 027e6c9..57ed9e7 100644 --- a/DCCEXParser.cpp +++ b/DCCEXParser.cpp @@ -435,14 +435,12 @@ bool DCCEXParser::parseZ(Print *stream, int params, int p[]) return true; case 3: // - Output::create(p[0], p[1], p[2], 1); if (!Output::create(p[0], p[1], p[2], 1)) return false; StringFormatter::send(stream, F("")); return true; case 1: // - return Output::remove(p[0]); if (!Output::remove(p[0])) return false; StringFormatter::send(stream, F("")); @@ -554,15 +552,12 @@ bool DCCEXParser::parseS(Print *stream, int params, int p[]) switch (params) { case 3: // create sensor. pullUp indicator (0=LOW/1=HIGH) - Sensor::create(p[0], p[1], p[2]); if (!Sensor::create(p[0], p[1], p[2])) return false; StringFormatter::send(stream, F("")); return true; case 1: // S id> remove sensor - if (Sensor::remove(p[0])) - return true; if (!Sensor::remove(p[0])) return false; StringFormatter::send(stream, F(""));