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:
76:6b0d47c3027c
Parent:
75:5af098188ebf
Child:
77:87aac94b235a
--- a/main.cpp	Thu Sep 13 15:28:48 2018 -0700
+++ b/main.cpp	Thu Sep 13 15:32:17 2018 -0700
@@ -174,8 +174,8 @@
       Count2Avg[CountAvgIndex] = Count2;
       CountAvgIndex = ++CountAvgIndex % CountAvg;
 
-      // smooth counts while giving current count more weight
-      uint32_t Count1Sum = 0, Count2Sum = 0;
+      // smooth counts while accounting for small roundoff error
+      uint32_t Count1Sum = CountAvg-1, Count2Sum = CountAvg-1;
       for (uint8_t i=0;i<CountAvg;i++)
       {
          Count1Sum += Count1Avg[i];