1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 10:06:13 +01:00

EX-IO digital buffer size correction

This commit is contained in:
peteGSX 2024-01-18 13:33:47 +10:00
parent 3462beeeac
commit 5959a8655c

View File

@ -105,8 +105,8 @@ private:
if (_digitalPinBytes < digitalBytesNeeded) {
// Not enough space, free any existing buffer and allocate a new one
if (_digitalPinBytes > 0) free(_digitalInputStates);
_digitalInputStates = (byte*) calloc(_digitalPinBytes, 1);
_digitalPinBytes = digitalBytesNeeded;
_digitalInputStates = (byte*) calloc(_digitalPinBytes, 1);
}
}