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

handle negative pins

This commit is contained in:
Harald Barth 2021-11-08 00:19:23 +01:00
parent 89dcafb2d7
commit 6c75563779
2 changed files with 4 additions and 2 deletions

View File

@ -71,7 +71,9 @@ byte RMFT2::flags[MAX_FLAGS];
case OPCODE_AFTER:
case OPCODE_IF:
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) {

View File

@ -3,7 +3,7 @@
#include "StringFormatter.h"
#define VERSION "3.2.0 rc1"
#define VERSION "3.2.0 rc2"
// 3.2.0 Major functional and non-functional changes.
// New HAL added for I/O (digital and analogue inputs and outputs, servos etc).
// Support for MCP23008, MCP23017 and PCF9584 I2C GPIO Extender modules.