diff --git a/firmware/lib/session/SessionManager.h b/firmware/lib/session/SessionManager.h index 822be4c..51f9667 100644 --- a/firmware/lib/session/SessionManager.h +++ b/firmware/lib/session/SessionManager.h @@ -86,7 +86,8 @@ void SessionManager::begin(int scaleDoutPin, int scaleSckPin, uint8_t scaleDoutPin_ = scaleDoutPin; scaleSckPin_ = scaleSckPin; tareAvgCount_ = tareAvgCount; - + valueRightShift_ = valueRightShift; + timeClient_.begin(); timeClient_.update(); session_.init(timeClient_.getEpochTime()); diff --git a/firmware/src/SwimTrackerConfig.h b/firmware/src/SwimTrackerConfig.h index 2676d03..7ccc600 100644 --- a/firmware/src/SwimTrackerConfig.h +++ b/firmware/src/SwimTrackerConfig.h @@ -3,7 +3,7 @@ #include // Uncomment for Version 2.0 where load cell is connected differently -#define _HW_V_20 +//#define _HW_V_20 #define NEW_HEAVY_LOAD_CELL constexpr const char *CONFIG_HOSTNAME = "swimtracker"; diff --git a/firmware/src/firmware_main.cpp b/firmware/src/firmware_main.cpp index ac74506..dacc639 100644 --- a/firmware/src/firmware_main.cpp +++ b/firmware/src/firmware_main.cpp @@ -73,7 +73,7 @@ bool firmwareUpdate() } return true; } - + void sessionManagerSetup() { Preferences scalePrefs;