Skip to content

Commit

Permalink
AP_Winch: correct compilation when backends compiled out
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Aug 8, 2024
1 parent 4857bbe commit ab01ec6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_Winch/AP_Winch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,16 @@ void AP_Winch::init()
switch ((WinchType)config.type.get()) {
case WinchType::NONE:
break;
#if AP_WINCH_PWM_ENABLED
case WinchType::PWM:
backend = NEW_NOTHROW AP_Winch_PWM(config);
break;
#endif
#if AP_WINCH_DAIWA_ENABLED
case WinchType::DAIWA:
backend = NEW_NOTHROW AP_Winch_Daiwa(config);
break;
#endif
default:
break;
}
Expand Down

0 comments on commit ab01ec6

Please sign in to comment.