AP_HAL: fix peekbytes casting

This commit is contained in:
Tom Pittenger 2016-02-22 01:22:09 -08:00 committed by Andrew Tridgell
parent 0709cc6b25
commit 9718ee23d1

View File

@ -150,7 +150,7 @@ public:
peek copies an object out without advancing the read pointer
*/
bool peek(T &object) {
return peekbytes(&object, sizeof(T)) == sizeof(T);
return buffer->peekbytes((uint8_t*)&object, sizeof(T)) == sizeof(T);
}
/* update the object at the front of the queue (the one that would