AP_Mount: topotek spelling fix

This commit is contained in:
Randy Mackay 2024-07-23 16:52:33 +09:00 committed by Andrew Tridgell
parent cfd1e98333
commit 2b64787099
1 changed files with 3 additions and 3 deletions

View File

@ -1060,15 +1060,15 @@ void AP_Mount_Topotek::gimbal_version_analyse()
const uint8_t data_buf_len = char_to_hex(_msg_buff[5]);
// check for "."
bool constains_period = false;
bool contains_period = false;
for (uint8_t i = 0; i < data_buf_len; i++) {
constains_period |= _msg_buff[10 + i] == '.';
contains_period |= _msg_buff[10 + i] == '.';
}
// if contains period, extract version number
uint32_t ver_num = 0;
uint8_t ver_count = 0;
if (constains_period) {
if (contains_period) {
for (uint8_t i = 0; i < data_buf_len; i++) {
if (_msg_buff[10 + i] != '.') {
ver_num = ver_num * 10 + char_to_hex(_msg_buff[10 + i]);