From 1c0070004efb18c2555bcf204e864decdfa92ec2 Mon Sep 17 00:00:00 2001 From: Carlo Parata Date: Wed, 28 Aug 2024 15:12:03 +0200 Subject: [PATCH] Update vl53l4ed_class.h Signed-off-by: Carlo Parata --- src/vl53l4ed_class.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vl53l4ed_class.h b/src/vl53l4ed_class.h index 0dda720..9589710 100644 --- a/src/vl53l4ed_class.h +++ b/src/vl53l4ed_class.h @@ -135,7 +135,7 @@ class VL53L4ED { status = VL53L4ED_GetSensorId(&sensor_id); - if (status != VL53L4ED_ERROR_NONE && (sensor_id != 0xecaa)) { + if (status != VL53L4ED_ERROR_NONE || (sensor_id != 0xecaa)) { return VL53L4ED_ERROR_TIMEOUT; }