Browse Source

AP_HAL: ringbuffer get_size cannot be const because of semaphore

zr-v5.1
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
ad895c2654
  1. 2
      libraries/AP_HAL/utility/RingBuffer.h

2
libraries/AP_HAL/utility/RingBuffer.h

@ -267,7 +267,7 @@ public: @@ -267,7 +267,7 @@ public:
}
// return size of ringbuffer
uint32_t get_size(void) const {
uint32_t get_size(void) {
WITH_SEMAPHORE(sem);
return buffer->get_size() / sizeof(T);
}

Loading…
Cancel
Save