From 57178dac4d1117c7992d237d108dda8af097a499 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Thu, 23 Jul 2020 15:42:07 +0100 Subject: [PATCH] Turnout status display bug --- Turnouts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Turnouts.cpp b/Turnouts.cpp index 2eec241..96e0a1d 100644 --- a/Turnouts.cpp +++ b/Turnouts.cpp @@ -79,7 +79,7 @@ void Turnout::show(Print & stream, int n){ bool Turnout::showAll(Print & stream){ bool gotOne=false; for(Turnout * tt=firstTurnout;tt!=NULL;tt=tt->nextTurnout){ - StringFormatter::send(stream,F(""), tt->data.id, tt->data.address, tt->data.subAddress, tt->data.tStatus); + StringFormatter::send(stream,F(""), tt->data.id, tt->data.address, tt->data.subAddress, (tt->data.tStatus & STATUS_ACTIVE)!=0); gotOne=true; } return gotOne;