AP_Compass: configured() only checks compasses with _USE set

This commit is contained in:
Jonathan Challinger 2015-03-17 18:38:55 -07:00 committed by Andrew Tridgell
parent 2864d58474
commit de600ca3da

View File

@ -685,7 +685,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;
}