Bugfix: Value right shift was ignored
This commit is contained in:
parent
654ff2e7c3
commit
3764fd8b77
|
@ -86,7 +86,8 @@ void SessionManager<SessionT>::begin(int scaleDoutPin, int scaleSckPin, uint8_t
|
||||||
scaleDoutPin_ = scaleDoutPin;
|
scaleDoutPin_ = scaleDoutPin;
|
||||||
scaleSckPin_ = scaleSckPin;
|
scaleSckPin_ = scaleSckPin;
|
||||||
tareAvgCount_ = tareAvgCount;
|
tareAvgCount_ = tareAvgCount;
|
||||||
|
valueRightShift_ = valueRightShift;
|
||||||
|
|
||||||
timeClient_.begin();
|
timeClient_.begin();
|
||||||
timeClient_.update();
|
timeClient_.update();
|
||||||
session_.init(timeClient_.getEpochTime());
|
session_.init(timeClient_.getEpochTime());
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
// Uncomment for Version 2.0 where load cell is connected differently
|
// Uncomment for Version 2.0 where load cell is connected differently
|
||||||
#define _HW_V_20
|
//#define _HW_V_20
|
||||||
#define NEW_HEAVY_LOAD_CELL
|
#define NEW_HEAVY_LOAD_CELL
|
||||||
|
|
||||||
constexpr const char *CONFIG_HOSTNAME = "swimtracker";
|
constexpr const char *CONFIG_HOSTNAME = "swimtracker";
|
||||||
|
|
|
@ -73,7 +73,7 @@ bool firmwareUpdate()
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sessionManagerSetup()
|
void sessionManagerSetup()
|
||||||
{
|
{
|
||||||
Preferences scalePrefs;
|
Preferences scalePrefs;
|
||||||
|
|
Loading…
Reference in New Issue