From d3506583d58796532eb69ddc93a81e399fb1e1ed Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 8 Sep 2020 22:15:42 +0200 Subject: [PATCH] remove unused POWER* opcodes --- DCC.cpp | 4 ---- DCC.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/DCC.cpp b/DCC.cpp index 092fe1e..679f771 100644 --- a/DCC.cpp +++ b/DCC.cpp @@ -659,10 +659,6 @@ void DCC::ackManagerLoop(bool blocking) { opcode=pgm_read_byte_near(ackManagerProg); } break; - case POWERON: - break; - case POWEROFF: - break; case SKIPTARGET: break; default: diff --git a/DCC.h b/DCC.h index 6b3e499..ea14cbf 100644 --- a/DCC.h +++ b/DCC.h @@ -44,8 +44,6 @@ SETCV, // sets cv number to next prog byte STASHLOCOID, // keeps current byte value for later COMBINELOCOID, // combines current value with stashed value and returns it ITSKIP, // skip to SKIPTARGET if ack true -POWERON, // check if power on prog track is on and remember state -POWEROFF, // turn power off again if it was off before POWERON SKIPTARGET=0xFF // jump to target };