AP_HAL: ringbuffer get_size cannot be const because of semaphore

This commit is contained in:
Andy Piper 2020-09-15 16:53:54 +01:00 committed by Andrew Tridgell
parent 940d708438
commit ad895c2654

View File

@ -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);
}