NodeManager icon indicating copy to clipboard operation
NodeManager copied to clipboard

SensorSHT31.h

Open NickLplus opened this issue 2 years ago • 3 comments

A small one: SensorSHT31.h reports temperature in ° Fahrenheit even when I_CONFIG is 0 ('Metric').

NickLplus avatar May 21 '22 15:05 NickLplus

Hi, never seen this behaviour before, will mark it as a bug and try to reproduce it. In case you have logs to share would be great. Thanks

user2684 avatar Jun 06 '22 10:06 user2684

Thank you for looking into it. The line temperature = nodeManager.celsiusToFahrenheit(temperature); seems to be executed always, without a check for I_CONFIG value.

NickLplus avatar Jun 06 '22 17:06 NickLplus

Actually the check is inside the function (https://github.com/mysensors/NodeManager/blob/master/nodemanager/Node.cpp#L138). The logs should tell you if I_CONFIG is updated correctly, let's have a look :-)

user2684 avatar Jun 11 '22 12:06 user2684