mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-25 05:31:24 +01:00
Merge branch 'master' of https://github.com/DCC-EX/CommandStation-EX
This commit is contained in:
commit
a2f8a8ec91
@ -1 +1 @@
|
|||||||
#define GITHUB_SHA "197228c"
|
#define GITHUB_SHA "88fa5ad"
|
||||||
|
@ -720,10 +720,10 @@ void RMFT2::kill(const FSH * reason, int operand) {
|
|||||||
byte opcode=GET_OPCODE;
|
byte opcode=GET_OPCODE;
|
||||||
if (opcode==OPCODE_ENDEXRAIL) return;
|
if (opcode==OPCODE_ENDEXRAIL) return;
|
||||||
if (opcode!=OPCODE_SIGNAL) continue;
|
if (opcode!=OPCODE_SIGNAL) continue;
|
||||||
byte redpin=GET_OPERAND(0);
|
VPIN redpin=GET_OPERAND(0);
|
||||||
if (redpin!=id)continue;
|
if (redpin!=id)continue;
|
||||||
byte amberpin=GET_OPERAND(1);
|
VPIN amberpin=GET_OPERAND(1);
|
||||||
byte greenpin=GET_OPERAND(2);
|
VPIN greenpin=GET_OPERAND(2);
|
||||||
// If amberpin is zero, synthesise amber from red+green
|
// If amberpin is zero, synthesise amber from red+green
|
||||||
IODevice::write(redpin,red || (amber && (amberpin==0)));
|
IODevice::write(redpin,red || (amber && (amberpin==0)));
|
||||||
if (amberpin) IODevice::write(amberpin,amber);
|
if (amberpin) IODevice::write(amberpin,amber);
|
||||||
|
Loading…
Reference in New Issue
Block a user