AP_NavEKF_Source:Fixed some style issues

This commit is contained in:
Arsh 2020-12-26 23:13:42 +05:30 committed by Randy Mackay
parent 5432c9957a
commit 3df1bd84e1
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ bool AP_NavEKF_Source::pre_arm_check(char *failure_msg, uint8_t failure_msg_len)
return false;
}
if (compass_required && dal.compass().get_num_enabled() == 0) {
if (compass_required && (dal.compass().get_num_enabled() == 0)) {
hal.util->snprintf(failure_msg, failure_msg_len, ekf_requires_msg, "Compass");
return false;
}