summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ButtonHandler/ButtonHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ButtonHandler/ButtonHandler.cpp b/ButtonHandler/ButtonHandler.cpp
index edc9ea1..279fc5b 100644
--- a/ButtonHandler/ButtonHandler.cpp
+++ b/ButtonHandler/ButtonHandler.cpp
@@ -96,7 +96,7 @@ ButtonHandler::ButtonHandler(osThreadId main)
// fall handler called on press, rise handler called on release
_sw1.fall(this, &ButtonHandler::sw1_fall);
_sw1.rise(this, &ButtonHandler::sw1_rise);
- // need to set mode to PullUp after attaching handlers - won't work otherwise
+ // need to set mode to PullUp after attaching handlers - default is PullNone (see PinNames.h)
_sw1.mode(PullUp);
_sw2.fall(this, &ButtonHandler::sw2_fall);