Skip to content

Commit

Permalink
AP_EFI: fixed build on Currawong driver without EFI support
Browse files Browse the repository at this point in the history
  • Loading branch information
loki077 committed Nov 21, 2023
1 parent 3b70c82 commit 6a696d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libraries/AP_EFI/AP_EFI_Currawong_ECU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
*
* Author: Reilly Callaway / Currawong Engineering Pty Ltd
*/
#include "AP_EFI_config.h"

#include "AP_EFI_Currawong_ECU.h"
#if HAL_EFI_ENABLED && HAL_EFI_CURRAWONG_ECU_ENABLED

#if HAL_EFI_CURRAWONG_ECU_ENABLED
#include "AP_EFI_Currawong_ECU.h"

#include <AP_Param/AP_Param.h>
#include <AP_PiccoloCAN/piccolo_protocol/ECUPackets.h>
Expand Down Expand Up @@ -103,4 +104,4 @@ bool AP_EFI_Currawong_ECU::handle_message(AP_HAL::CANFrame &frame)
return valid;
}

#endif // HAL_EFI_CURRAWONG_ECU_ENABLED
#endif // HAL_EFI_CURRAWONG_ECU_ENABLED && HAL_EFI_ENABLED

0 comments on commit 6a696d3

Please sign in to comment.