mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-17 11:44:15 +08:00
system/poweroff: Use prototype for board_power_off() from include/nuttx/board.h, not from non-supported power.h header file
This commit is contained in:
parent
28c654c9b1
commit
8f16c5d32d
@ -37,7 +37,7 @@
|
|||||||
* Included Files
|
* Included Files
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <arch/board/power.h>
|
#include <nuttx/board.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
@ -63,5 +63,10 @@ int poweroff_main(int argc, char *argv[])
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
board_power_off();
|
board_power_off();
|
||||||
|
|
||||||
|
/* If board_power_off function returns, then it was not possible to power-off the
|
||||||
|
* board due to some constraints.
|
||||||
|
*/
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user