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
     }
73
     }
74
     else if (key == 'C' || key == '*') {
74
     else if (key == 'C' || key == '*') {
75
         if (len > 0) {
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
             return true;
81
             return true;
78
         }
82
         }
79
     }
83
     }

Loading…
Cancel
Save