From 540cca5fddd210df85a43b0cfb64966eb3dfbcc1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 15 Dec 2024 15:51:36 +1100 Subject: [PATCH] AP_Volz_Protocol: move serial port init of Volz protocol into Volz library --- libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp b/libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp index c5318ef3ce..183dd4a7e2 100644 --- a/libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp +++ b/libraries/AP_Volz_Protocol/AP_Volz_Protocol.cpp @@ -69,6 +69,9 @@ void AP_Volz_Protocol::init(void) return; } + // update baud param in case user looks at it + serial_manager.set_default_baud(AP_SerialManager::SerialProtocol_Volz, 0, baudrate); + // Create thread to handle output if (!hal.scheduler->thread_create(FUNCTOR_BIND_MEMBER(&AP_Volz_Protocol::loop, void), "Volz",