aboutsummaryrefslogtreecommitdiff
path: root/apps/systemcmds
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-10-27 22:42:43 -0700
committerpx4dev <px4@purgatory.org>2012-10-27 22:42:43 -0700
commit98791bc6740bcbcbb355befd7c57ff22b9583bb5 (patch)
tree914489e23ada4e6cef04f426343c676fe6eec38d /apps/systemcmds
parent22b0add293f7aa7f1331fab61f5141f647e0188f (diff)
downloadpx4-firmware-98791bc6740bcbcbb355befd7c57ff22b9583bb5.tar.gz
px4-firmware-98791bc6740bcbcbb355befd7c57ff22b9583bb5.tar.bz2
px4-firmware-98791bc6740bcbcbb355befd7c57ff22b9583bb5.zip
Remove reboot() API, replace with a prototype for up_systemreset() which is portable.
Diffstat (limited to 'apps/systemcmds')
-rw-r--r--apps/systemcmds/reboot/reboot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/systemcmds/reboot/reboot.c b/apps/systemcmds/reboot/reboot.c
index e8886139d..47d3cd948 100644
--- a/apps/systemcmds/reboot/reboot.c
+++ b/apps/systemcmds/reboot/reboot.c
@@ -41,14 +41,13 @@
#include <unistd.h>
#include <stdio.h>
-#include "systemlib/systemlib.h"
+#include <systemlib/systemlib.h>
__EXPORT int reboot_main(int argc, char *argv[]);
int reboot_main(int argc, char *argv[])
{
- reboot();
- return 0;
+ up_systemreset();
}