AP_OpticalFlow: failure to init leaves enabled unchanged

This commit is contained in:
Randy Mackay 2017-08-22 11:25:02 +09:00
parent a7afffe14a
commit fdb4c7b5ee

View File

@ -104,8 +104,6 @@ void OpticalFlow::init(void)
if (backend != nullptr) {
backend->init();
} else {
_enabled = 0;
}
}