working button incrementer

Dependencies:   mbed

Revision:
1:ac916e153bc4
Parent:
0:bfc9617c596c
--- a/main.cpp	Wed Feb 10 15:31:26 2021 +0000
+++ b/main.cpp	Thu Feb 18 14:16:42 2021 +0000
@@ -13,12 +13,10 @@
     
     while(1)
     {
-        if (counter>9) counter = 0;
+        if (counter>3) counter = 0;
         
         if (counter<0) counter = 0;
         
-        DisplayNumber(counter);
-        
         if (button_up == 1)
         {
             counter++;