Skip to content

Commit

Permalink
AP_Compass: configured() only checks compasses with _USE set
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Mar 18, 2015
1 parent d4d1274 commit da84de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Compass/Compass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ bool Compass::configured(void)
{
bool all_configured = true;
for(uint8_t i=0; i<get_count(); i++) {
all_configured = all_configured && configured(i);
all_configured = all_configured && (!use_for_yaw(i) || configured(i));
}
return all_configured;
}
Expand Down

0 comments on commit da84de3

Please sign in to comment.