mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 11:00:35 +08:00
IRLock: fix compile error
This commit is contained in:
committed by
Lorenz Meier
parent
64248f3ad5
commit
aa1d7d7869
@@ -110,7 +110,7 @@ private:
|
||||
int read_device_block(struct irlock_s *block);
|
||||
|
||||
/** internal variables **/
|
||||
RingBuffer *_reports;
|
||||
ringbuffer::RingBuffer *_reports;
|
||||
bool _sensor_ok;
|
||||
work_s _work;
|
||||
uint32_t _read_failures;
|
||||
@@ -158,7 +158,7 @@ int IRLOCK::init()
|
||||
}
|
||||
|
||||
/** allocate buffer storing values read from sensor **/
|
||||
_reports = new RingBuffer(IRLOCK_OBJECTS_MAX, sizeof(struct irlock_s));
|
||||
_reports = new ringbuffer::RingBuffer(IRLOCK_OBJECTS_MAX, sizeof(struct irlock_s));
|
||||
|
||||
if (_reports == nullptr) {
|
||||
return ENOTTY;
|
||||
|
||||
Reference in New Issue
Block a user