diff --git a/sdk/src/sl_lidar_driver.cpp b/sdk/src/sl_lidar_driver.cpp index 1e7e234c..c1677481 100644 --- a/sdk/src/sl_lidar_driver.cpp +++ b/sdk/src/sl_lidar_driver.cpp @@ -551,7 +551,7 @@ namespace sl { sl_result grabScanDataHq(sl_lidar_response_measurement_node_hq_t* nodebuffer, size_t& count, sl_u32 timeout = DEFAULT_TIMEOUT) { - switch (_dataEvt.wait(timeout)) + switch (static_cast(_dataEvt.wait(timeout))) { case rp::hal::Event::EVENT_TIMEOUT: count = 0;