Dependencies:   TextLCD

Revision:
1:028c44d2aa6d
Parent:
0:9802675a1b15
Child:
2:397be4b2e023
--- a/main.cpp	Wed Mar 18 13:59:33 2020 +0000
+++ b/main.cpp	Wed Mar 18 14:05:33 2020 +0000
@@ -10,9 +10,9 @@
 #include <sstream>
 #include "vector"
 #include "TextLCD.h"
- 
+
 //TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7
- 
+
 
 using namespace std;
 DigitalIn incrementbutton(PA_2);
@@ -63,10 +63,10 @@
             lcd.cls();
 
 
-                if (debug1 > 1) {
-                    std::cout << "Select Number : " << count << " ?\n" << std::endl;
-                    scanf("%s", &str1);
-                }
+            if (debug1 > 1) {
+                std::cout << "Select Number : " << count << " ?\n" << std::endl;
+                scanf("%s", &str1);
+            }
 
             if (acceptbutton == 0) {       //RD2 (the button configurations for RD0 will be here)
                 password.push_back(count);
@@ -100,10 +100,9 @@
         lcd.printf("\n");
         wait(1);
         lcd.cls();
-    }else
-    {
+    } else {
         //  std::cout << "password incorrect\n" << "Try Again" << std::endl;
-    
+
         lcd.printf("incorrect Try Again"");
                    wait(1);
                    lcd.cls();