Browse Source

fixed backspace; backspace bring back to uid if passord is empty

develop
Robin Thoni 8 years ago
parent
commit
12e6ad1eee
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      main.ino

+ 5
- 1
main.ino View File

@@ -73,7 +73,11 @@ bool handleUidPassword(String& str, int maxLength, char key) {
73 73
     }
74 74
     else if (key == 'C' || key == '*') {
75 75
         if (len > 0) {
76
-            str = str.substring(0, len - 2);
76
+            str = str.substring(0, len - 1);
77
+            return true;
78
+        }
79
+        else if (status == Password) {
80
+            status = Uid;
77 81
             return true;
78 82
         }
79 83
     }

Loading…
Cancel
Save