From 1c78792ddad8cfbd0e1780a637a9370ea4b1a213 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Wed, 25 May 2022 07:41:47 +0200 Subject: [PATCH] Revert "test to remove port code" This reverts commit cfcd61174dcc059fb9f144d7c9c6034b813beebb. --- TrackManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TrackManager.cpp b/TrackManager.cpp index aaf26f9..b1e76f8 100644 --- a/TrackManager.cpp +++ b/TrackManager.cpp @@ -119,11 +119,17 @@ void TrackManager::setPROGSignal( bool on) { } void TrackManager::setDCSignal(int16_t cab, byte speedbyte) { + HAVE_PORTA(fakePORTA=PORTA); + HAVE_PORTB(fakePORTB=PORTB); + HAVE_PORTC(fakePORTC=PORTC); FOR_EACH_TRACK(t) { if (trackDCAddr[t]!=cab) continue; if (trackMode[t]==TRACK_MODE_DC) track[t]->setDCSignal(speedbyte); else if (trackMode[t]==TRACK_MODE_DCX) track[t]->setDCSignal(speedbyte ^ 128); } + HAVE_PORTA(PORTA=fakePORTA); + HAVE_PORTB(PORTB=fakePORTB); + HAVE_PORTC(PORTC=fakePORTC); }