Skip to content

Commit cff3696

Browse files
freyndertekka007
authored andcommitted
Inclusion mode: change pinmode to INPUT_PULLUP (#1197)
Issue 1196: #1196 According to arduino references we should instead use INPUT_PULLUP as of Arduino 1.0.1 https://www.arduino.cc/en/Tutorial/DigitalPins
1 parent 6d24ab1 commit cff3696

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/MyInclusionMode.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ inline void inclusionInit()
3030
_inclusionMode = false;
3131
#if defined(MY_INCLUSION_BUTTON_FEATURE)
3232
// Setup digital in that triggers inclusion mode
33-
hwPinMode(MY_INCLUSION_MODE_BUTTON_PIN, INPUT);
34-
hwDigitalWrite(MY_INCLUSION_MODE_BUTTON_PIN, HIGH);
33+
hwPinMode(MY_INCLUSION_MODE_BUTTON_PIN, INPUT_PULLUP);
3534
#endif
3635
#if defined (MY_INCLUSION_LED_PIN)
3736
// Setup LED pin that indicates inclusion mode

0 commit comments

Comments
 (0)