mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
Remove excessive mem usage
This commit is contained in:
@@ -363,6 +363,7 @@ void do_mag_calibration(int status_pub, struct vehicle_status_s *status)
|
|||||||
if (x == NULL || y == NULL || z == NULL) {
|
if (x == NULL || y == NULL || z == NULL) {
|
||||||
warnx("mag cal failed: out of memory");
|
warnx("mag cal failed: out of memory");
|
||||||
mavlink_log_info(mavlink_fd, "mag cal failed: out of memory");
|
mavlink_log_info(mavlink_fd, "mag cal failed: out of memory");
|
||||||
|
printf("x:%p y:%p z:%p\n", x, y, z);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1101,7 +1102,7 @@ int commander_main(int argc, char *argv[])
|
|||||||
daemon_task = task_spawn("commander",
|
daemon_task = task_spawn("commander",
|
||||||
SCHED_DEFAULT,
|
SCHED_DEFAULT,
|
||||||
SCHED_PRIORITY_MAX - 50,
|
SCHED_PRIORITY_MAX - 50,
|
||||||
9000,
|
4096,
|
||||||
commander_thread_main,
|
commander_thread_main,
|
||||||
(argv) ? (const char **)&argv[2] : (const char **)NULL);
|
(argv) ? (const char **)&argv[2] : (const char **)NULL);
|
||||||
thread_running = true;
|
thread_running = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user