diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-12-11 11:35:53 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-12-11 11:35:53 -0600 |
commit | 4d25ea49c23dcfa0bbbe8c42eee37686e764997b (patch) | |
tree | db65845959a4fb0024974b7f7a5676fe3d4874b5 | |
parent | 0fa95cb14aff999c40255d859ac866ea1b56d9c0 (diff) | |
download | mtdot-box-evb-factory-firmware-4d25ea49c23dcfa0bbbe8c42eee37686e764997b.tar.gz mtdot-box-evb-factory-firmware-4d25ea49c23dcfa0bbbe8c42eee37686e764997b.tar.bz2 mtdot-box-evb-factory-firmware-4d25ea49c23dcfa0bbbe8c42eee37686e764997b.zip |
fix SW1 issue on cold boot by initializing _sw#_running variables
-rw-r--r-- | ButtonHandler/ButtonHandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ButtonHandler/ButtonHandler.cpp b/ButtonHandler/ButtonHandler.cpp index 279fc5b..dfdbd92 100644 --- a/ButtonHandler/ButtonHandler.cpp +++ b/ButtonHandler/ButtonHandler.cpp @@ -89,6 +89,8 @@ ButtonHandler::ButtonHandler(osThreadId main) _sw2(PA_11), _sw1_time(0), _sw2_time(0), + _sw1_running(false), + _sw2_running(false), _event(none), _debounce_time(20), _hold_threshold(500) |