-
Notifications
You must be signed in to change notification settings - Fork 52
Description
I used FP16 for 2 years for muliple analog humidity sensors. Sometimes, the sensors reports "0". For a long time, it was unclear if the problem is due to connectivity, due to the sensors or due to some overflow in my code.
Recently, I noticed that the knx telegram is systematically 0 when the sensor value passes a certain value. Looking at sensor archives, the value is in the range (probably between) 40.86 and 40.96. While looking at the conversion code from FP32 to FP16, I noticed that this code is explicityly setting the FP16 components and I could imagine that some format violation is then interpreted as 0 by my knx router.
There seems another problem in the range (probably between) 81.92 and 81.94.
I don't have the equipment to do any further systematic testing, but maybe someone else could pick up the problem and run a systematic test for all fp16 values in that range.