From 83636e6ef345ec2cd068b63c0e21e627450d9754 Mon Sep 17 00:00:00 2001 From: Nick Exton Date: Fri, 15 Sep 2023 12:38:47 +1000 Subject: [PATCH] AP_Mount: In Siyi, fix missing braces in process_packet() --- libraries/AP_Mount/AP_Mount_Siyi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Mount/AP_Mount_Siyi.cpp b/libraries/AP_Mount/AP_Mount_Siyi.cpp index cf5ee69fa8..e45e5c168b 100644 --- a/libraries/AP_Mount/AP_Mount_Siyi.cpp +++ b/libraries/AP_Mount/AP_Mount_Siyi.cpp @@ -507,8 +507,9 @@ void AP_Mount_Siyi::process_packet() //const float pitch_rate_deg = (int16_t)UINT16_VALUE(_msg_buff[_msg_buff_data_start+9], _msg_buff[_msg_buff_data_start+8]) * 0.1; // pitch rate //const float roll_rate_deg = (int16_t)UINT16_VALUE(_msg_buff[_msg_buff_data_start+11], _msg_buff[_msg_buff_data_start+10]) * 0.1; // roll rate break; + } - case SiyiCommandId::READ_RANGEFINDER: + case SiyiCommandId::READ_RANGEFINDER: { _rangefinder_dist_m = UINT16_VALUE(_msg_buff[_msg_buff_data_start+1], _msg_buff[_msg_buff_data_start]); _last_rangefinder_dist_ms = AP_HAL::millis(); break;