From 5e97d0e107c46767ca2111f6112e75448f038323 Mon Sep 17 00:00:00 2001 From: Eran Date: Wed, 22 Jan 2020 10:16:42 +0200 Subject: [PATCH] fix possible bug in device-hid detection --- src/ds5/ds5-factory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ds5/ds5-factory.cpp b/src/ds5/ds5-factory.cpp index c11636fbb4..984d3d7e0f 100644 --- a/src/ds5/ds5-factory.cpp +++ b/src/ds5/ds5-factory.cpp @@ -920,7 +920,7 @@ namespace librealsense // Assuming that hids amount of 2 and above guarantee that gyro and accelerometer are present if (is_device_hid_sensor) { - all_sensors_present &= (hids.capacity() >= 2); + all_sensors_present &= (hids.size() >= 2); } #endif