From 88fa5ad37cb03b9b691399294b427325b9ede38c Mon Sep 17 00:00:00 2001 From: Asbelos Date: Wed, 24 Nov 2021 12:02:16 +0000 Subject: [PATCH] VPIN in RMFT2::doSignal --- RMFT2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RMFT2.cpp b/RMFT2.cpp index 5a91541..c2a99d3 100644 --- a/RMFT2.cpp +++ b/RMFT2.cpp @@ -720,10 +720,10 @@ void RMFT2::kill(const FSH * reason, int operand) { byte opcode=GET_OPCODE; if (opcode==OPCODE_ENDEXRAIL) return; if (opcode!=OPCODE_SIGNAL) continue; - byte redpin=GET_OPERAND(0); + VPIN redpin=GET_OPERAND(0); if (redpin!=id)continue; - byte amberpin=GET_OPERAND(1); - byte greenpin=GET_OPERAND(2); + VPIN amberpin=GET_OPERAND(1); + VPIN greenpin=GET_OPERAND(2); // If amberpin is zero, synthesise amber from red+green IODevice::write(redpin,red || (amber && (amberpin==0))); if (amberpin) IODevice::write(amberpin,amber);