AP_Scripting: re-order initialiser lines so -Werror=reorder will work

This commit is contained in:
Peter Barker 2024-09-20 22:20:44 +10:00 committed by Peter Barker
parent 1ce391c6e8
commit bb9a0a5b2f
1 changed files with 4 additions and 1 deletions

View File

@ -60,7 +60,10 @@ private:
class ScriptingCANBuffer { class ScriptingCANBuffer {
public: public:
ScriptingCANBuffer(ScriptingCANSensor &_sensor, uint32_t buffer_size):sensor(_sensor), buffer(buffer_size) {}; ScriptingCANBuffer(ScriptingCANSensor &_sensor, uint32_t buffer_size):
buffer(buffer_size),
sensor(_sensor)
{};
// Call main sensor write method // Call main sensor write method
bool write_frame(AP_HAL::CANFrame &out_frame, const uint32_t timeout_us); bool write_frame(AP_HAL::CANFrame &out_frame, const uint32_t timeout_us);