Skip to content

Commit

Permalink
Solve conversion error with gcc 11
Browse files Browse the repository at this point in the history
  • Loading branch information
lebarsfa committed Feb 12, 2023
1 parent dff5214 commit 62e0fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/sdk/src/rplidar_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ u_result RPlidarDriverImplCommon::grabScanData(rplidar_response_measurement_node
{
DEPRECATED_WARN("grabScanData()", "grabScanDataHq()");

switch (_dataEvt.wait(timeout))
switch ((int)_dataEvt.wait(timeout))
{
case rp::hal::Event::EVENT_TIMEOUT:
count = 0;
Expand Down Expand Up @@ -1850,7 +1850,7 @@ u_result RPlidarDriverImplCommon::grabScanData(rplidar_response_measurement_node

u_result RPlidarDriverImplCommon::grabScanDataHq(rplidar_response_measurement_node_hq_t * nodebuffer, size_t & count, _u32 timeout)
{
switch (_dataEvt.wait(timeout))
switch ((int)_dataEvt.wait(timeout))
{
case rp::hal::Event::EVENT_TIMEOUT:
count = 0;
Expand Down

0 comments on commit 62e0fe3

Please sign in to comment.