Skip to content

Commit

Permalink
Merge pull request #5691 from maloel/cap
Browse files Browse the repository at this point in the history
Fix possible bug in device-hid detection
  • Loading branch information
dorodnic authored Jan 23, 2020
2 parents 5190393 + 5e97d0e commit 2b0868e
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 2b0868e

Please sign in to comment.