mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
HAL_AVR: reorder parameters to remove a warning with -Wreorder
This commit is contained in:
parent
4e73cf810e
commit
ce6529734c
@ -8,7 +8,7 @@ using namespace AP_HAL_AVR;
|
||||
/* Helper class implements AP_HAL::Print so we can use utility/vprintf */
|
||||
class BufferPrinter : public AP_HAL::Print {
|
||||
public:
|
||||
BufferPrinter(char* str, size_t size) : _str(str), _size(size), _offs(0) {}
|
||||
BufferPrinter(char* str, size_t size) : _offs(0), _str(str), _size(size) {}
|
||||
size_t write(uint8_t c) {
|
||||
if (_offs < _size) {
|
||||
_str[_offs] = c;
|
||||
|
Loading…
Reference in New Issue
Block a user