[chronojump] Fixed different arduinos EEPROM default value



commit ee094ff44427783e012b82bbbd3dbe1effedfb92
Author: Xavier Padullés <x padulles gmail com>
Date:   Thu Feb 11 16:25:02 2021 +0100

    Fixed different arduinos EEPROM default value

 arduino/raceAnalyzer/raceAnalyzer.ino | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/arduino/raceAnalyzer/raceAnalyzer.ino b/arduino/raceAnalyzer/raceAnalyzer.ino
index 9ad9c360..d8856168 100644
--- a/arduino/raceAnalyzer/raceAnalyzer.ino
+++ b/arduino/raceAnalyzer/raceAnalyzer.ino
@@ -89,7 +89,7 @@ void setup() {
 
   EEPROM.get(ppsAddress, pps);
   //if pps is 0 it means that it has never been set. We use the default value
-  if (pps == -151) {
+  if (pps < 0) {
     pps = 10;
     EEPROM.put(ppsAddress, pps);
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]