Skip to content

Commit b370f77

Browse files
simbit18xiaoxiang781216
authored andcommitted
Update batt_main.c
1 parent d4e85ce commit b370f77

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

examples/battery/batt_main.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
/****************************************************************************
3838
* Pre-processor Definitions
3939
****************************************************************************/
40+
4041
/* Configuration ************************************************************/
4142

4243
#ifndef CONFIG_EXAMPLES_BATTERY_DEVNAME
@@ -69,7 +70,8 @@ void status_report(int status)
6970

7071
case BATTERY_IDLE:
7172
{
72-
printf("Battery is idle, not full, not charging, not discharging!\n");
73+
printf("Battery is idle, not full, not charging, "
74+
"not discharging!\n");
7375
}
7476
break;
7577

@@ -194,15 +196,17 @@ int main(int argc, FAR char *argv[])
194196
}
195197

196198
printf("Going to read battery info, updated each two seconds.\n");
197-
printf("Try to remove the board power supply, etc, to change its status.\n");
199+
printf("Try to remove the board power supply, etc, "
200+
"to change its status.\n");
198201

199202
/* Wait the user read the information message above */
200203

201204
sleep(5);
202205

203206
for (i = 0; i < 10; i++)
204207
{
205-
printf("\n-----------------------------------------------------------\n");
208+
printf("\n----------------------------"
209+
"-------------------------------\n");
206210

207211
/* Read battery status */
208212

0 commit comments

Comments
 (0)