From 05098f844786a8c17981173529eb7a0e609b5fb4 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Sat, 21 Nov 2026 12:37:11 +0100 Subject: [PATCH] MLX90614: Return max float on error --- hardware/src/a4wd3_open_manipulator_i2c.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.5