mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: rename RingBuffer.force() to RingBuffer.push_force()
This commit is contained in:
parent
7459bfb96b
commit
1d528d552f
|
@ -130,10 +130,10 @@ public:
|
|||
|
||||
|
||||
/*
|
||||
force() is semantically equivalent to:
|
||||
if (!push(t)) { pop(); push(t); }
|
||||
* push_force() is semantically equivalent to:
|
||||
* if (!push(t)) { pop(); push(t); }
|
||||
*/
|
||||
bool force(const T &object) {
|
||||
bool push_force(const T &object) {
|
||||
if (buffer->space() < sizeof(T)) {
|
||||
buffer->advance(sizeof(T));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue