mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 08:01:35 +08:00
ll40ls cleanup unnecessary Device CDev usage
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
#include <drivers/drv_pwm_input.h>
|
||||
|
||||
LidarLitePWM::LidarLitePWM(const char *path, uint8_t rotation) :
|
||||
CDev("LidarLitePWM", path),
|
||||
CDev(path),
|
||||
_rotation(rotation),
|
||||
_work{},
|
||||
_reports(nullptr),
|
||||
@@ -111,7 +111,7 @@ int LidarLitePWM::init()
|
||||
&_orb_class_instance, ORB_PRIO_LOW);
|
||||
|
||||
if (_distance_sensor_topic == nullptr) {
|
||||
DEVICE_DEBUG("failed to create distance_sensor object. Did you start uOrb?");
|
||||
PX4_DEBUG("failed to create distance_sensor object. Did you start uOrb?");
|
||||
}
|
||||
|
||||
return PX4_OK;
|
||||
@@ -167,7 +167,7 @@ int LidarLitePWM::measure()
|
||||
perf_begin(_sample_perf);
|
||||
|
||||
if (PX4_OK != collect()) {
|
||||
DEVICE_DEBUG("collection error");
|
||||
PX4_DEBUG("collection error");
|
||||
perf_count(_read_errors);
|
||||
perf_end(_sample_perf);
|
||||
return PX4_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user