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 6539722 commit b8f7516
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 b8f7516

Please sign in to comment.