This fixed a bug I was having with the TEMPerHUM where it would intermittently fail to fetch data.
It turns out the string "TEMPerHUM_V3.9" is only 14 characters long. The TEMPerHUM device has a total firmware string of "TEMPerHUM_V3.9 TEMPerHUM_V3.9".
This leads to the following results:
With the old code
info["firmware"][:16] = "TEMPerHUM_V3.9 "
With my change
info["firmware"][:14] = "TEMPerHUM_V3.9"
Thus it matches the expected behavior, otherwise the firmware version comparison will fail
This fixed a bug I was having with the TEMPerHUM where it would intermittently fail to fetch data. It turns out the string "TEMPerHUM_V3.9" is only 14 characters long. The TEMPerHUM device has a total firmware string of "TEMPerHUM_V3.9 TEMPerHUM_V3.9". This leads to the following results: