Cleanup and fixes

This commit is contained in:
Martin Bauer
2023-09-14 16:16:17 +02:00
parent 4900c36e0b
commit 5e56ede55c
14 changed files with 258 additions and 23 deletions

View File

@@ -8,7 +8,7 @@ public:
bool measure(uint16_t &measurementOut)
{
long value = hx711_.read_average(CONFIG_MEASUREMENT_AVG_COUNT);
LOG_TRACE("rv %ld\n", value);
LOG_TRACE("rv %ld", value);
value -= offset_;
if (value < 0)
@@ -28,7 +28,7 @@ public:
{
auto v1 = hx711_.read_average(3);
offset_ = hx711_.read_average(numMeasurementsToAverage);
LOG_INFO("Init reading %ld, Tare offset %ld\n", v1, offset_);
LOG_INFO("Init reading %ld, Tare offset %ld", v1, offset_);
}
const long &offset() const { return offset_; }