AP_HAL: rename RingBuffer.force() to RingBuffer.push_force()

This commit is contained in:
Tom Pittenger 2016-02-21 22:13:27 -08:00
parent 7459bfb96b
commit 1d528d552f
1 changed files with 3 additions and 3 deletions

View File

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