Minh Nguyen / Pushbutton
Revision:
5:0417f54d0519
Parent:
4:3f905ce43f2b
Child:
6:8a33efda4eb2
--- a/Pushbutton.cpp	Fri Mar 12 01:08:03 2021 +0000
+++ b/Pushbutton.cpp	Fri Mar 12 04:13:49 2021 +0000
@@ -62,11 +62,15 @@
                     *mode = OP_MANUAL2;
                     return;
                 }
-                else if(*mode == OP_MANUAL2 || *mode == OP_WSETTING || *mode == OP_PLACEMENT)
+                else if(*mode == OP_MANUAL2 || *mode == OP_WSETTING || *mode == OP_CONFIRM)
                 {
                     *mode = OP_NORMAL;
                     return;
                 }
+                else if(*mode == OP_PLACEMENT){
+                    *mode = OP_CONFIRM;
+                    return;
+                }
                 else{
                     *mode = OP_PLACEMENT;
                     return;