mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-16 22:19:14 +01:00
handle negative pins
This commit is contained in:
parent
89dcafb2d7
commit
6c75563779
@ -71,7 +71,9 @@ byte RMFT2::flags[MAX_FLAGS];
|
|||||||
case OPCODE_AFTER:
|
case OPCODE_AFTER:
|
||||||
case OPCODE_IF:
|
case OPCODE_IF:
|
||||||
case OPCODE_IFNOT:
|
case OPCODE_IFNOT:
|
||||||
IODevice::configureInput((VPIN)GET_OPERAND(0),true);
|
int16_t pin = (int16_t)GET_OPERAND(0);
|
||||||
|
if (pin<0) pin = -pin;
|
||||||
|
IODevice::configureInput((VPIN)pin,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opcode==OPCODE_SIGNAL) {
|
if (opcode==OPCODE_SIGNAL) {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "StringFormatter.h"
|
#include "StringFormatter.h"
|
||||||
|
|
||||||
#define VERSION "3.2.0 rc1"
|
#define VERSION "3.2.0 rc2"
|
||||||
// 3.2.0 Major functional and non-functional changes.
|
// 3.2.0 Major functional and non-functional changes.
|
||||||
// New HAL added for I/O (digital and analogue inputs and outputs, servos etc).
|
// New HAL added for I/O (digital and analogue inputs and outputs, servos etc).
|
||||||
// Support for MCP23008, MCP23017 and PCF9584 I2C GPIO Extender modules.
|
// Support for MCP23008, MCP23017 and PCF9584 I2C GPIO Extender modules.
|
||||||
|
Loading…
Reference in New Issue
Block a user