mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 19:07:35 +08:00
Remove reboot() API, replace with a prototype for up_systemreset() which is portable.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user