Update batt_main.c
This commit is contained in:
parent
d4e85ce384
commit
b370f77851
@ -37,6 +37,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Configuration ************************************************************/
|
/* Configuration ************************************************************/
|
||||||
|
|
||||||
#ifndef CONFIG_EXAMPLES_BATTERY_DEVNAME
|
#ifndef CONFIG_EXAMPLES_BATTERY_DEVNAME
|
||||||
@ -69,7 +70,8 @@ void status_report(int status)
|
|||||||
|
|
||||||
case BATTERY_IDLE:
|
case BATTERY_IDLE:
|
||||||
{
|
{
|
||||||
printf("Battery is idle, not full, not charging, not discharging!\n");
|
printf("Battery is idle, not full, not charging, "
|
||||||
|
"not discharging!\n");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -194,7 +196,8 @@ int main(int argc, FAR char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("Going to read battery info, updated each two seconds.\n");
|
printf("Going to read battery info, updated each two seconds.\n");
|
||||||
printf("Try to remove the board power supply, etc, to change its status.\n");
|
printf("Try to remove the board power supply, etc, "
|
||||||
|
"to change its status.\n");
|
||||||
|
|
||||||
/* Wait the user read the information message above */
|
/* Wait the user read the information message above */
|
||||||
|
|
||||||
@ -202,7 +205,8 @@ int main(int argc, FAR char *argv[])
|
|||||||
|
|
||||||
for (i = 0; i < 10; i++)
|
for (i = 0; i < 10; i++)
|
||||||
{
|
{
|
||||||
printf("\n-----------------------------------------------------------\n");
|
printf("\n----------------------------"
|
||||||
|
"-------------------------------\n");
|
||||||
|
|
||||||
/* Read battery status */
|
/* Read battery status */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user