mysensors/NodeManager

SensorSHT31.h

NickLplus opened this issue · 3 comments

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

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

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

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 :-)