Skip to content

Commit

Permalink
fixed[getDeviceInfo]: fixed get device information response header size
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuyuan committed Mar 20, 2020
1 parent d8d402d commit 5bac2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ydlidar_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ result_t YDlidarDriver::getDeviceInfo(device_info &info, uint32_t timeout) {
return RESULT_FAIL;
}

if (response_header.size < sizeof(lidar_ans_header)) {
if (response_header.size < sizeof(device_info)) {
return RESULT_FAIL;
}

Expand Down

0 comments on commit 5bac2ee

Please sign in to comment.