mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +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);
|
||||
_pinModes = (&_pinPullups[0]) + arrayLen;
|
||||
for (int i=0; i<arrayLen; i++) {
|
||||
_pinPullups[i] = 0;
|
||||
_pinPullups[i] = -1;
|
||||
_pinModes[i] = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user