scale debug output
This commit is contained in:
@@ -8,6 +8,7 @@ public:
|
|||||||
bool measure(uint16_t &measurementOut)
|
bool measure(uint16_t &measurementOut)
|
||||||
{
|
{
|
||||||
long value = hx711_.read_average(CONFIG_MEASUREMENT_AVG_COUNT) - offset_;
|
long value = hx711_.read_average(CONFIG_MEASUREMENT_AVG_COUNT) - offset_;
|
||||||
|
Serial.println(value);
|
||||||
if (value < 0)
|
if (value < 0)
|
||||||
measurementOut = (int16_t)(-(value >> valueRightShift_ ));
|
measurementOut = (int16_t)(-(value >> valueRightShift_ ));
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user