do not allocate unnecessary memory in logging app

This commit is contained in:
tumbili
2016-02-26 17:06:40 +01:00
committed by Lorenz Meier
parent 36e3600809
commit 3ab6fe7edd
2 changed files with 4 additions and 6 deletions

View File

@@ -31,7 +31,7 @@
#
############################################################################
if (${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=2500)
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1600)
endif()
px4_add_module(
MODULE modules__sdlog2

View File

@@ -337,7 +337,7 @@ int sdlog2_main(int argc, char *argv[])
deamon_task = px4_task_spawn_cmd("sdlog2",
SCHED_DEFAULT,
task_priority,
4200,
3400,
sdlog2_thread_main,
(char * const *)argv);
@@ -1384,11 +1384,9 @@ int sdlog2_thread_main(int argc, char *argv[])
} else {
// copy topic
if (record_replay_log) {
struct ekf2_replay_s replay;
orb_copy(ORB_ID(ekf2_replay), subs.replay_sub, &replay);
orb_copy(ORB_ID(ekf2_replay), subs.replay_sub, &buf.replay);
} else {
struct sensor_combined_s sensors;
orb_copy(ORB_ID(sensor_combined), subs.sensor_sub, &sensors);
orb_copy(ORB_ID(sensor_combined), subs.sensor_sub, &buf.sensor);
}
poll_counter++;
continue;