Skip to content

Commit

Permalink
AP_Mount: topotek spelling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jul 23, 2024
1 parent 7bd6855 commit 106b7da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_Mount/AP_Mount_Topotek.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 106b7da

Please sign in to comment.