mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-03-30 18:20:12 +02:00
set default pullup in EXRAIL begin code
This commit is contained in:
parent
055bc7bfe2
commit
e3d771a24d
@ -66,6 +66,14 @@ byte RMFT2::flags[MAX_FLAGS];
|
|||||||
byte opcode=GET_OPCODE;
|
byte opcode=GET_OPCODE;
|
||||||
if (opcode==OPCODE_ENDEXRAIL) break;
|
if (opcode==OPCODE_ENDEXRAIL) break;
|
||||||
|
|
||||||
|
switch (opcode) {
|
||||||
|
case OPCODE_AT:
|
||||||
|
case OPCODE_AFTER:
|
||||||
|
case OPCODE_IF:
|
||||||
|
case OPCODE_IFNOT:
|
||||||
|
IODevice::configureInput((VPIN)GET_OPERAND(0),true);
|
||||||
|
}
|
||||||
|
|
||||||
if (opcode==OPCODE_SIGNAL) {
|
if (opcode==OPCODE_SIGNAL) {
|
||||||
VPIN red=GET_OPERAND(0);
|
VPIN red=GET_OPERAND(0);
|
||||||
VPIN amber=GET_OPERAND(1);
|
VPIN amber=GET_OPERAND(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user