Skip to content

Commit

Permalink
fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
noacoohen committed Apr 16, 2024
1 parent 77977b2 commit c618877
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hid/hid-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ namespace librealsense
REALSENSE_HID_REPORT report;
if( _realsense_hid_report_actual_size != sizeof( REALSENSE_HID_REPORT ) )
{
//for FX version<5.16 the actual struct is 32 bit, so we can not use memcpy for the whole struct
//for FX version<5.16 x,y,x are all short with the x variable located at offset 10, y at offset 12, and z at offset 14 within the structure.
//for FX version < 5.16 the actual struct is 32 bit, so we can not use memcpy for the whole struct
//for FW version < 5.16 x,y,x are all short with the x variable located at offset 10, y at offset 12, and z at offset 14 within the structure.
memcpy( &report, r->get_buffer().data(), 10 );
const int16_t * x
= reinterpret_cast< const int16_t * >( r->get_buffer().data() + 10 );
Expand Down Expand Up @@ -315,7 +315,7 @@ namespace librealsense

//we want to change the sensitivity values only in gyro, for FW version>=5.16
if( (int)featureReport.reportId == REPORT_ID_GYROMETER_3D
&& _realsense_hid_report_actual_size == sizeof( FEATURE_REPORT ) )
&& _realsense_hid_report_actual_size == sizeof( REALSENSE_HID_REPORT ) )
featureReport.sensitivity = sensitivity;


Expand Down

0 comments on commit c618877

Please sign in to comment.