1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 01:56:14 +01:00

Remove excess comments

This commit is contained in:
peteGSX 2023-01-23 04:53:39 +10:00
parent fb9170ab8b
commit aaf25d5426

View File

@ -1081,17 +1081,14 @@ int16_t RMFT2::getSignalSlot(int16_t id) {
if (redpin) { if (redpin) {
bool redval=(rag==SIGNAL_RED || rag==SIMAMBER); bool redval=(rag==SIGNAL_RED || rag==SIMAMBER);
if (!aHigh) redval=!redval; if (!aHigh) redval=!redval;
// IODevice::write(redpin,(rag==SIGNAL_RED || rag==SIMAMBER)^aHigh);
IODevice::write(redpin,redval); IODevice::write(redpin,redval);
} }
if (amberpin) { if (amberpin) {
// IODevice::write(amberpin,(rag==SIGNAL_AMBER)^aHigh);
bool amberval=(rag==SIGNAL_AMBER); bool amberval=(rag==SIGNAL_AMBER);
if (!aHigh) amberval=!amberval; if (!aHigh) amberval=!amberval;
IODevice::write(amberpin,amberval); IODevice::write(amberpin,amberval);
} }
if (greenpin) { if (greenpin) {
// IODevice::write(greenpin,(rag==SIGNAL_GREEN || rag==SIMAMBER)^aHigh);
bool greenval=(rag==SIGNAL_GREEN || rag==SIMAMBER); bool greenval=(rag==SIGNAL_GREEN || rag==SIMAMBER);
if (!aHigh) greenval=!greenval; if (!aHigh) greenval=!greenval;
IODevice::write(greenpin,greenval); IODevice::write(greenpin,greenval);