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; }