From b412980f90e984509bfa8b5dfd14dffa7899f475 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 28 May 2016 12:10:19 +0200 Subject: [PATCH] Enable top in SITL --- cmake/configs/posix_sitl_default.cmake | 1 + src/systemcmds/top/top.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmake/configs/posix_sitl_default.cmake b/cmake/configs/posix_sitl_default.cmake index b5343ff73d..3adc2a425c 100644 --- a/cmake/configs/posix_sitl_default.cmake +++ b/cmake/configs/posix_sitl_default.cmake @@ -29,6 +29,7 @@ set(config_module_list systemcmds/sd_bench systemcmds/topic_listener systemcmds/ver + systemcmds/top modules/attitude_estimator_ekf modules/attitude_estimator_q diff --git a/src/systemcmds/top/top.c b/src/systemcmds/top/top.c index fe9614bc69..68e2801bab 100644 --- a/src/systemcmds/top/top.c +++ b/src/systemcmds/top/top.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2012, 2013, 2015 PX4 Development Team. All rights reserved. + * Copyright (c) 2012-2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -96,7 +96,7 @@ top_main(int argc, char *argv[]) case 0x1b: // esc case 'c': case 'q': - return OK; + return 0; /* not reached */ } } @@ -107,5 +107,5 @@ top_main(int argc, char *argv[]) curr_time = hrt_absolute_time(); } - return OK; + return 0; }