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:
77:87aac94b235a
Parent:
76:6b0d47c3027c
Child:
78:0fd2f71c2d64
diff -r 6b0d47c3027c -r 87aac94b235a main.cpp
--- a/main.cpp	Thu Sep 13 15:32:17 2018 -0700
+++ b/main.cpp	Thu Sep 13 15:35:08 2018 -0700
@@ -175,7 +175,7 @@
       CountAvgIndex = ++CountAvgIndex % CountAvg;
 
       // smooth counts while accounting for small roundoff error
-      uint32_t Count1Sum = CountAvg-1, Count2Sum = CountAvg-1;
+      uint32_t Count1Sum = 1, Count2Sum = 1;
       for (uint8_t i=0;i<CountAvg;i++)
       {
          Count1Sum += Count1Avg[i];