1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-24 13:21:23 +01:00

IO_Modbus: slight change

This commit is contained in:
travis-farmer 2024-11-30 14:20:46 -05:00
parent a31b671ea0
commit f1217bf92f
No known key found for this signature in database
GPG Key ID: 0BC296791D14CB35

View File

@ -228,7 +228,7 @@ public:
return (int) inputRegisters[pin];
}
void _writeAnalogue(VPIN vpin, int value, uint8_t param1=0, uint16_t param2=0) override {
void _writeAnalogue(VPIN vpin, int value) {
uint16_t pin = vpin - _firstVpin - _numDiscreteInputs - _numCoils - _numInputRegisters;
holdingRegisters[pin] = (uint16_t*) value;
}