mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 03:53:33 +08:00
require MODULE_NAME
This commit is contained in:
@@ -46,7 +46,7 @@ namespace px4
|
||||
|
||||
void init(int argc, char *argv[], const char *process_name)
|
||||
{
|
||||
PX4_WARN("process: %s", process_name);
|
||||
printf("process: %s\n", process_name);
|
||||
}
|
||||
|
||||
uint64_t get_time_micros()
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
#include "px4_daemon/server.h"
|
||||
#include "px4_daemon/pxh.h"
|
||||
|
||||
#define MODULE_NAME "px4"
|
||||
|
||||
static const char *LOCK_FILE_PATH = "/tmp/px4_lock";
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ add_library(px4_layer
|
||||
drv_hrt.c
|
||||
${SHMEM_SRCS}
|
||||
)
|
||||
target_compile_definitions(px4_layer PRIVATE MODULE_NAME="px4")
|
||||
target_link_libraries(px4_layer PRIVATE work_queue)
|
||||
target_link_libraries(px4_layer PRIVATE px4_daemon)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user