I noticed when NODEMANAGER_DEBUG and NODEMANAGER_DEBUG_VERBOSE are enabled that floating point numbers get printed in a wrong fashion probably due to some overflow.
For example if I set the value of a sensor to 32767.6789 I get following log:
This happens both with DOUBLE and FLOAT formats. But as you can see the line from MySensors is showing correctly the truncated and rounded value. So at the end it is only a cosmetic error.
I will try to fix it with an pull request shortly.
Thanks, my understanding is that the right value is sent over the network BUT the way it is printed is wrong. Thanks a lot for the PR, will merge straight away!
Hello there,
I noticed when NODEMANAGER_DEBUG and NODEMANAGER_DEBUG_VERBOSE are enabled that floating point numbers get printed in a wrong fashion probably due to some overflow.
For example if I set the value of a sensor to 32767.6789 I get following log:
This happens both with DOUBLE and FLOAT formats. But as you can see the line from MySensors is showing correctly the truncated and rounded value. So at the end it is only a cosmetic error.
I will try to fix it with an pull request shortly.
Kind regards.