As happened in #85, I got this error building rplidar_ros from sources:
/home/pi/catkin_ws/src/rplidar_ros/sdk/src/sl_lidar_driver.cpp:556:34: error: narrowing conversion of ‘rp::hal::Event::EVENT_TIMEOUT’ from ‘int’ to ‘long unsigned int’ [-Wnarrowing] 556 | case rp::hal::Event::EVENT_TIMEOUT:
This PR contains a simple fix by changing the return types and variables related to events from unsigned long to int in event.h file.
As happened in #85, I got this error building rplidar_ros from sources:
/home/pi/catkin_ws/src/rplidar_ros/sdk/src/sl_lidar_driver.cpp:556:34: error: narrowing conversion of ‘rp::hal::Event::EVENT_TIMEOUT’ from ‘int’ to ‘long unsigned int’ [-Wnarrowing] 556 | case rp::hal::Event::EVENT_TIMEOUT:
This PR contains a simple fix by changing the return types and variables related to events from unsigned long to int in event.h file.