Skip to content

Commit

Permalink
fix possible bug in device-hid detection
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Jan 22, 2020
1 parent 7967668 commit 5e97d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ds5/ds5-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5e97d0e

Please sign in to comment.