mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 13:31:36 +08:00
Expand auto-format coverage and tiny style changes
This commit is contained in:
committed by
Mathieu Bresciani
parent
fbdd75da2e
commit
f20726d47f
@@ -60,6 +60,7 @@ public:
|
||||
RingBuffer &operator=(RingBuffer &&) = delete;
|
||||
|
||||
bool allocate(uint8_t size) {
|
||||
|
||||
if (_buffer != nullptr) {
|
||||
delete[] _buffer;
|
||||
}
|
||||
@@ -92,6 +93,7 @@ public:
|
||||
}
|
||||
|
||||
void push(const data_type &sample) {
|
||||
|
||||
uint8_t head_new = _head;
|
||||
|
||||
if (!_first_write) {
|
||||
|
||||
Reference in New Issue
Block a user