mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
possible flaboo fix
This commit is contained in:
parent
755e6ab0cc
commit
56a68fd9af
@ -238,7 +238,7 @@ public:
|
||||
|
||||
void _write(VPIN vpin, int value) {
|
||||
// Update current state for this device, in preparation the bus transmission
|
||||
uint16_t pin = vpin - _firstVpin - numCoils;
|
||||
uint16_t pin = vpin - _firstVpin - numDiscreteInputs;
|
||||
if (pin < numCoils) {
|
||||
if (value)
|
||||
coils[pin] = value;
|
||||
|
Loading…
Reference in New Issue
Block a user