Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Pushbutton.cpp
- Revision:
- 2:6ade0fbab4e1
- Parent:
- 1:e47e80a32fb5
- Child:
- 3:03c78d8b7dfc
diff -r e47e80a32fb5 -r 6ade0fbab4e1 Pushbutton.cpp
--- a/Pushbutton.cpp Sun Feb 28 03:26:11 2021 +0000
+++ b/Pushbutton.cpp Thu Mar 11 23:22:16 2021 +0000
@@ -60,11 +60,15 @@
*mode = OP_MANUAL2;
return;
}
- else if(*mode == OP_MANUAL2 || *mode == OP_WSETTING)
+ else if(*mode == OP_MANUAL2 || *mode == OP_WSETTING ||| *mode == OP_PLACEMENT)
{
*mode = OP_NORMAL;
return;
}
+ else{
+ *mode = OP_PLACEMENT;
+ return;
+ }
t.stop();
return;
}
