Minh Nguyen / Pushbutton
Revision:
6:8a33efda4eb2
Parent:
5:0417f54d0519
Child:
7:1dbc0dfc85e0
diff -r 0417f54d0519 -r 8a33efda4eb2 Pushbutton.cpp
--- a/Pushbutton.cpp	Fri Mar 12 04:13:49 2021 +0000
+++ b/Pushbutton.cpp	Fri Mar 12 17:00:25 2021 +0000
@@ -62,7 +62,12 @@
                     *mode = OP_MANUAL2;
                     return;
                 }
-                else if(*mode == OP_MANUAL2 || *mode == OP_WSETTING || *mode == OP_CONFIRM)
+                else if(*mode == OP_MANUAL2)
+                {
+                    *mode = OP_MANUAL_ALL;
+                    return;
+                }
+                else if(*mode == OP_MANUAL_ALL || *mode == OP_WSETTING || *mode == OP_CONFIRM)
                 {
                     *mode = OP_NORMAL;
                     return;