TODO-370: making more robust
TODO-370: making more robust

Avoiding a potential overflow and ensuring all
calibration parameters computed even if some are
iffy.
opentrv/OpenTRV-Arduino-V0p2,opentrv/OpenTRV-Arduino-V0p2,opentrv/OpenTRV-Arduino-V0p2