HAPO WS22 / Mbed 2 deprecated HAPO_WS22_Labor3_1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
alexander0707
Date:
Mon Dec 05 09:51:36 2022 +0000
Parent:
17:c34f14ec2beb
Child:
19:92ea302b7cf3
Commit message:
v2.7

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Dec 05 09:39:50 2022 +0000
+++ b/main.cpp	Mon Dec 05 09:51:36 2022 +0000
@@ -287,7 +287,6 @@
                     }
             }
         bS1Timer = 0;
-        bSCounter = 0;
         }
         
     if(abTxBuffer[0] == 'b') {                            /* User-Taste gedrückt */
@@ -320,7 +319,6 @@
                 bMainState= enSchwellenwert;
             }
         }
-        bS1Timer = 0;
         bSCounter = 0;
     }
     } 
@@ -453,10 +451,14 @@
             bTimerDot++; /* Zähler für Punktwechsel */
             vDisplayVolt(wVorgabeWert);
             if(bTimerDot == 400) {
+                wDelayGame=2*nTastShort;
+                bTimerDot = 0;
+            }
+            if(wDelayGame!=0){
                 if((bDigit&0x03) == 0x01) {
                     wSerial = wSerial & ~nSegH; /* Punktanzeigen */
-                }
-                bTimerDot = 0;
+                }  
+                wDelayGame--;
             }
             break;
         case enPotiAnzeige: