From: Erik Andresen Date: Sat, 21 Nov 2026 11:37:11 +0000 (+0100) Subject: MLX90614: Return max float on error X-Git-Url: https://defiant.homedns.org/gitweb/?a=commitdiff_plain;h=05098f844786a8c17981173529eb7a0e609b5fb4;p=wt_open_manipulator.git MLX90614: Return max float on error --- diff --git a/hardware/src/a4wd3_open_manipulator_i2c.cpp b/hardware/src/a4wd3_open_manipulator_i2c.cpp index 376e1e6..1fb186a 100644 --- a/hardware/src/a4wd3_open_manipulator_i2c.cpp +++ b/hardware/src/a4wd3_open_manipulator_i2c.cpp @@ -481,9 +481,10 @@ void A4wd3OpenManipulatorI2C::cbGetIrTemp(const std::shared_ptrtemp = std::numeric_limits::max(); + } else { + res->temp = val/10.0; } - res->temp = val/10.0; }