You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is due to the use of INT in the SensorBH1750 class. When values are too high they go negative.
I fixed mine by changing :
new Child(this,INT,nodeManager.getAvailableChildId(child_id),S_LIGHT_LEVEL,V_LEVEL,_name);
to:
new Child(this,FLOAT,nodeManager.getAvailableChildId(child_id),S_LIGHT_LEVEL,V_LEVEL,_name);
and:
int value = _lightSensor->readLightLevel();
to:
float value = _lightSensor->readLightLevel();
No description provided.
The text was updated successfully, but these errors were encountered: