AP_Compass: remove default clause from set_status switch
forces someone to consider what they need to do for any new state
This commit is contained in:
parent
afd8d8255f
commit
4231275f50
@ -473,10 +473,10 @@ bool CompassCalibrator::set_status(CompassCalibrator::Status status)
|
||||
|
||||
_status = status;
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
};
|
||||
|
||||
// compiler guarantees we don't get here
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CompassCalibrator::fit_acceptable() const
|
||||
|
Loading…
Reference in New Issue
Block a user