mirror of https://github.com/ArduPilot/ardupilot
AP_Winch: correct compilation when backends compiled out
This commit is contained in:
parent
27a7a21805
commit
748fe538ea
|
@ -78,12 +78,16 @@ void AP_Winch::init()
|
||||||
switch ((WinchType)config.type.get()) {
|
switch ((WinchType)config.type.get()) {
|
||||||
case WinchType::NONE:
|
case WinchType::NONE:
|
||||||
break;
|
break;
|
||||||
|
#if AP_WINCH_PWM_ENABLED
|
||||||
case WinchType::PWM:
|
case WinchType::PWM:
|
||||||
backend = NEW_NOTHROW AP_Winch_PWM(config);
|
backend = NEW_NOTHROW AP_Winch_PWM(config);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#if AP_WINCH_DAIWA_ENABLED
|
||||||
case WinchType::DAIWA:
|
case WinchType::DAIWA:
|
||||||
backend = NEW_NOTHROW AP_Winch_Daiwa(config);
|
backend = NEW_NOTHROW AP_Winch_Daiwa(config);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue