mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples: Remove the prefix of main from bmi160 and charger
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
06e74202b5
commit
42bde7fb27
2 changed files with 4 additions and 8 deletions
|
|
@ -57,11 +57,7 @@
|
|||
* sixaxis_main
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
int main(int argc, FAR char *argv[])
|
||||
#else
|
||||
int sixaxis_main(int argc, char *argv[])
|
||||
#endif
|
||||
{
|
||||
int fd;
|
||||
struct accel_gyro_st_s data;
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
|
|
@ -181,11 +185,7 @@ static int show_bat_status(int fd)
|
|||
* charger_main
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
int main(int argc, FAR char *argv[])
|
||||
#else
|
||||
int charger_main(int argc, char *argv[])
|
||||
#endif
|
||||
{
|
||||
int fd;
|
||||
int current;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue