param_test link libmsg_gen

This commit is contained in:
Daniel Agar 2016-05-13 17:14:44 -04:00 committed by Lorenz Meier
parent cf667dedb8
commit 9c32792017
2 changed files with 4 additions and 1 deletions

View File

@ -235,7 +235,9 @@ param_find_changed(param_t param)
static void
param_notify_changes(bool is_saved)
{
struct parameter_update_s pup = { .timestamp = hrt_absolute_time(), .saved = is_saved};
struct parameter_update_s pup;
pup.timestamp = hrt_absolute_time();
pup.saved = is_saved;
/*
* If we don't have a handle to our topic, create one now; otherwise

View File

@ -170,6 +170,7 @@ add_gtest(sf0x_test)
add_executable(param_test param_test.cpp uorb_stub.cpp
${PX4_SRC}/modules/systemlib/bson/tinybson.c
${PX4_SRC}/modules/systemlib/param/param.c)
target_link_libraries(param_test ${PX4_SITL_BUILD}/libmsg_gen.a)
add_gtest(param_test)
# param_shmem_test