We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ae61d2 commit db31a5cCopy full SHA for db31a5c
1 file changed
prodScreen_waitBattery.c
@@ -10,7 +10,7 @@
10
static int is_battery_present(){
11
char buf[10];
12
FILE *fp;
13
- int res = EXIT_FAILURE;
+ int res = 0;
14
15
/* Read battery file */
16
if ((fp = fopen(BATTERY_PRESENT_FILE, "r")) == NULL) {
@@ -34,7 +34,7 @@ static int wait_event_loop(){
34
SDL_Event event;
35
int stop_menu_loop = 0;
36
int prev_ms = 0;
37
- int res = ERROR_MANUAL_FAIL;
+ int res = EXIT_FAILURE;
38
39
/// -------- Main loop ---------
40
while (!stop_menu_loop)
0 commit comments