AP_HAL_Linux: OpticalFlow: remove unneeded panic

There's already a panic() below.
This commit is contained in:
Lucas De Marchi 2016-01-11 15:34:14 -02:00
parent 7adbccac9a
commit 2a33b6bf33
1 changed files with 0 additions and 4 deletions

View File

@ -105,10 +105,6 @@ void OpticalFlow_Onboard::init(AP_HAL::OpticalFlow::Gyro_Cb get_gyro)
_format = px_fmt;
}
}
if (!_format) {
AP_HAL::panic("OpticalFlow_Onboard: no supported format available");
}
#endif
if (!_videoin->set_format(&_width, &_height, &_format, &_bytesperline,