Native tests run again
This commit is contained in:
@@ -11,8 +11,8 @@ public:
|
||||
if (hx711_.is_ready())
|
||||
{
|
||||
long value = hx711_.read_average(CONFIG_MEASUREMENT_AVG_COUNT) - offset_;
|
||||
if(value > 0)
|
||||
measurementOut = (int16_t)(value / DIVIDER);
|
||||
if(value < 0)
|
||||
measurementOut = (int16_t)(-value / DIVIDER);
|
||||
else
|
||||
measurementOut = 0;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user