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
@ -57,11 +57,7 @@
|
|||||||
* sixaxis_main
|
* sixaxis_main
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
|
||||||
int main(int argc, FAR char *argv[])
|
int main(int argc, FAR char *argv[])
|
||||||
#else
|
|
||||||
int sixaxis_main(int argc, char *argv[])
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
struct accel_gyro_st_s data;
|
struct accel_gyro_st_s data;
|
||||||
|
@ -33,6 +33,10 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Included Files
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
@ -181,11 +185,7 @@ static int show_bat_status(int fd)
|
|||||||
* charger_main
|
* charger_main
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
|
||||||
int main(int argc, FAR char *argv[])
|
int main(int argc, FAR char *argv[])
|
||||||
#else
|
|
||||||
int charger_main(int argc, char *argv[])
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
int current;
|
int current;
|
||||||
|
Loading…
Reference in New Issue
Block a user