Charles Young's development fork. Going forward I only want to push mature code to main repository.

Dependencies:   mbed

Fork of GEO_COUNTER_L432KC by Geo Electronics "Geo Counter"

Revision:
46:c7ce8fccb712
Parent:
45:b9e1b3d4a752
Child:
47:f004b4612069
--- a/main.cpp	Thu Sep 06 11:49:27 2018 -0700
+++ b/main.cpp	Thu Sep 06 11:53:09 2018 -0700
@@ -56,7 +56,7 @@
 unsigned int value = 0;    // displayed value on the 6-digits of the display
 
 uint32_t    Count1, Count2;    // pulse counters (32-bit)
-int16_t     TickerCorrection = 0;
+int32_t     TickerCorrection = 0;
 const int16_t TickerCorrectionMax = 99;
 const int16_t TickerCorrectionMin = -99;
 
@@ -211,14 +211,14 @@
              && (TickerCorrection < TickerCorrectionMax))
          {
             TickerCorrection++;
-            Sec_Beat.attach_us(&UpdateOutput, 1000000 + TickerCorrection);  
+            Sec_Beat.attach_us(&UpdateOutput, 1000000 + 1000*TickerCorrection); 
          }
          else
             if (   (direction < 0)
                 && (TickerCorrection > TickerCorrectionMin))
             {
                TickerCorrection--;
-               Sec_Beat.attach_us(&UpdateOutput, 1000000 + TickerCorrection);  
+               Sec_Beat.attach_us(&UpdateOutput, 1000000 + 1000*TickerCorrection);  
             }
          DigitsDisplay.Display_2D_write(TickerCorrection);
          break;