scale debug output

This commit is contained in:
Martin Bauer 2021-08-07 11:30:59 +02:00
parent a45f49804c
commit 28c85f749c
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ public:
bool measure(uint16_t &measurementOut)
{
long value = hx711_.read_average(CONFIG_MEASUREMENT_AVG_COUNT) - offset_;
Serial.println(value);
if (value < 0)
measurementOut = (int16_t)(-(value >> valueRightShift_ ));
else