mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:33:34 +08:00
drivers: use new ringbuffer namespace everywhere
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
*/
|
||||
|
||||
#include "baro.hpp"
|
||||
#include <drivers/device/ringbuffer.h>
|
||||
#include <cmath>
|
||||
|
||||
const char *const UavcanBarometerBridge::NAME = "baro";
|
||||
@@ -56,7 +55,7 @@ int UavcanBarometerBridge::init()
|
||||
}
|
||||
|
||||
/* allocate basic report buffers */
|
||||
_reports = new RingBuffer(2, sizeof(baro_report));
|
||||
_reports = new ringbuffer::RingBuffer(2, sizeof(baro_report));
|
||||
if (_reports == nullptr)
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user