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
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/board/power.h>
|
||||
#include <nuttx/board.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@ -63,5 +63,10 @@ int poweroff_main(int argc, char *argv[])
|
||||
*/
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user