diff --git a/src/vl53l4cd_class.h b/src/vl53l4cd_class.h index b9ad2e8..ab04f4b 100644 --- a/src/vl53l4cd_class.h +++ b/src/vl53l4cd_class.h @@ -130,7 +130,7 @@ class VL53L4CD { status = VL53L4CD_GetSensorId(&sensor_id); - if (status != VL53L4CD_ERROR_NONE && (sensor_id != 0xebaa)) { + if (status != VL53L4CD_ERROR_NONE || (sensor_id != 0xebaa)) { return VL53L4CD_ERROR_TIMEOUT; }