mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_HAL_Linux: OpticalFlow: remove unneeded panic
There's already a panic() below.
This commit is contained in:
parent
7adbccac9a
commit
2a33b6bf33
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user