Bugfix: Value right shift was ignored

This commit is contained in:
Martin Bauer 2021-07-27 14:38:14 +02:00
parent 654ff2e7c3
commit 3764fd8b77
3 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,8 @@ void SessionManager<SessionT>::begin(int scaleDoutPin, int scaleSckPin, uint8_t
scaleDoutPin_ = scaleDoutPin;
scaleSckPin_ = scaleSckPin;
tareAvgCount_ = tareAvgCount;
valueRightShift_ = valueRightShift;
timeClient_.begin();
timeClient_.update();
session_.init(timeClient_.getEpochTime());

View File

@ -3,7 +3,7 @@
#include <cstdint>
// 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";

View File

@ -73,7 +73,7 @@ bool firmwareUpdate()
}
return true;
}
void sessionManagerSetup()
{
Preferences scalePrefs;