From 40c6bb7f2ea617aa944a74c2ea5dad8f9feb0441 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Fri, 27 Aug 2021 21:47:48 +0100 Subject: [PATCH] Output Turnout state change diagnostic if DIAG_IO #defined. --- Turnouts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Turnouts.cpp b/Turnouts.cpp index 7019fc4..9170fa8 100644 --- a/Turnouts.cpp +++ b/Turnouts.cpp @@ -129,7 +129,7 @@ // type should be placed in the virtual function setClosedInternal(bool) which is // called from here. /* static */ bool Turnout::setClosed(uint16_t id, bool closeFlag) { - #ifdef EESTOREDEBUG + #if defined(DIAG_IO) if (closeFlag) DIAG(F("Turnout::close(%d)"), id); else