AP_RCProtocol: 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 53c50b6bc7
commit 87fa7a208d
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@
SoftSerial::SoftSerial(uint32_t _baudrate, serial_config _config) : SoftSerial::SoftSerial(uint32_t _baudrate, serial_config _config) :
baudrate(_baudrate), baudrate(_baudrate),
config(_config), half_bit((1000000U / baudrate)/2),
half_bit((1000000U / baudrate)/2) config(_config)
{ {
switch (config) { switch (config) {
case SERIAL_CONFIG_8N1: case SERIAL_CONFIG_8N1: