1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

Enable pullups for Arduino input pins as a default (to match GPIO Extender modules).

This commit is contained in:
Neil McKechnie 2021-08-24 22:13:52 +01:00
parent 425de3fcc7
commit c45337d5d4

View File

@ -292,7 +292,7 @@ ArduinoPins::ArduinoPins(VPIN firstVpin, int nPins) {
_pinPullups = (uint8_t *)calloc(2, arrayLen);
_pinModes = (&_pinPullups[0]) + arrayLen;
for (int i=0; i<arrayLen; i++) {
_pinPullups[i] = 0;
_pinPullups[i] = -1;
_pinModes[i] = 0;
}
}