mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
Enable pullups for Arduino input pins as a default (to match GPIO Extender modules).
This commit is contained in:
parent
425de3fcc7
commit
c45337d5d4
|
@ -292,7 +292,7 @@ ArduinoPins::ArduinoPins(VPIN firstVpin, int nPins) {
|
||||||
_pinPullups = (uint8_t *)calloc(2, arrayLen);
|
_pinPullups = (uint8_t *)calloc(2, arrayLen);
|
||||||
_pinModes = (&_pinPullups[0]) + arrayLen;
|
_pinModes = (&_pinPullups[0]) + arrayLen;
|
||||||
for (int i=0; i<arrayLen; i++) {
|
for (int i=0; i<arrayLen; i++) {
|
||||||
_pinPullups[i] = 0;
|
_pinPullups[i] = -1;
|
||||||
_pinModes[i] = 0;
|
_pinModes[i] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user