summaryrefslogtreecommitdiff
path: root/ButtonHandler
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-12-09 08:51:03 -0600
committerMike Fiore <mfiore@multitech.com>2015-12-09 08:51:03 -0600
commit279d4b746cb23dce634c968a86eaab0199f1d4af (patch)
tree9936f8f9e4ef579bc3fe0a3de5e3426dd774c2e4 /ButtonHandler
parentabaacd64f96b834d85169f12351b0057c6e9c2fd (diff)
downloadmtdot-box-evb-factory-firmware-279d4b746cb23dce634c968a86eaab0199f1d4af.tar.gz
mtdot-box-evb-factory-firmware-279d4b746cb23dce634c968a86eaab0199f1d4af.tar.bz2
mtdot-box-evb-factory-firmware-279d4b746cb23dce634c968a86eaab0199f1d4af.zip
update comment about setting pin mode for ButtonHandler interrupts
Diffstat (limited to 'ButtonHandler')
-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);