Skip to content

Commit

Permalink
emit warning message if C2A_CORE_VER_MAJOR is not defined to support …
Browse files Browse the repository at this point in the history
…c2a-core <= v3.4.0
  • Loading branch information
sksat committed Oct 17, 2023
1 parent 5345447 commit f639d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/real/cdh/on_board_computer_with_c2a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "src_core/c2a_core_main.h"

#if !defined(C2A_CORE_VER_MAJOR)
#error "C2A_CORE_VER_MAJOR is not defined"
#warning "C2A_CORE_VER_MAJOR is not defined" # this flag is defined after c2a-core v3.5.0
#elif C2A_CORE_VER_MAJOR == 4
// c2a-core v4
#include "src_core/system/task_manager/task_dispatcher.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifdef USE_C2A
#include "src_core/c2a_core_main.h"
#if !defined(C2A_CORE_VER_MAJOR)
#error "C2A_CORE_VER_MAJOR is not defined"
#warning "C2A_CORE_VER_MAJOR is not defined" # this flag is defined after c2a-core v3.5.0
#elif C2A_CORE_VER_MAJOR == 4
// c2a-core v4
#include "src_core/tlm_cmd/common_cmd_packet_util.h"
Expand Down

0 comments on commit f639d33

Please sign in to comment.