AP_Mount: In Siyi, fix missing braces in process_packet()

This commit is contained in:
Nick Exton 2023-09-15 12:38:47 +10:00 committed by Randy Mackay
parent b407591663
commit 83636e6ef3
1 changed files with 2 additions and 1 deletions

View File

@ -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;