Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
noacoohen committed Apr 16, 2024
1 parent 8e001eb commit 6fc96da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hid/hid-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ namespace librealsense
if( _realsense_hid_report_actual_size != sizeof( REALSENSE_HID_REPORT ) )
{
//for FW 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.
//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 @@ -220,7 +220,7 @@ namespace librealsense
if( _realsense_hid_report_actual_size != sizeof( REALSENSE_HID_REPORT ) )
{
// for FW 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
// 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, tmp_buffer, 10 );
const int16_t * x = reinterpret_cast< const int16_t * >( tmp_buffer + 10 );
Expand Down

0 comments on commit 6fc96da

Please sign in to comment.