Skip to content

Commit

Permalink
AP_Mount: Siyi displays zoom version
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Aug 24, 2023
1 parent d74acc6 commit 67ad248
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libraries/AP_Mount/AP_Mount_Siyi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,13 @@ void AP_Mount_Siyi::process_packet()
(unsigned)_msg_buff[_msg_buff_data_start+5], // firmware minor version
(unsigned)_msg_buff[_msg_buff_data_start+4]); // firmware revision

// display zoom firmware version
#if AP_MOUNT_SIYI_DEBUG
// display zoom firmware version for those that have it
if (_parsed_msg.data_bytes_received >= 12) {
debug("Mount: SiyiZoom fw:%u.%u.%u",
gcs().send_text(MAV_SEVERITY_INFO, "Mount: SiyiZoom fw:%u.%u.%u",
(unsigned)_msg_buff[_msg_buff_data_start+10], // firmware major version
(unsigned)_msg_buff[_msg_buff_data_start+9], // firmware minor version
(unsigned)_msg_buff[_msg_buff_data_start+8]); // firmware revision
}
#endif
break;
}

Expand Down

0 comments on commit 67ad248

Please sign in to comment.