Skip to content

Commit

Permalink
flash booth slots only on AB slot devices
Browse files Browse the repository at this point in the history
  • Loading branch information
munjeni committed Jul 19, 2021
1 parent d127943 commit ce15741
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
17 changes: 6 additions & 11 deletions newflasher.c
Original file line number Diff line number Diff line change
Expand Up @@ -3261,17 +3261,6 @@ int main(int argc, char *argv[])
goto endflashing;
}

/*============ Ask user for flashing bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots =========*/

//printf("\nOptional step! Type 'y' and press ENTER if you need to flash bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots, or type 'n' to skip.\n");
//printf("By default it is NOT flashed to booth slots, do on your own risk!\n");
//if (scanf(" %c", &ch)) { }
//if (ch == 'y' || ch == 'Y')
//{
/* now this is mandatory */
flash_booth_slots = true;
//}

/*========================================= DEVICE INFO ============================================*/

snprintf(tmp, sizeof(tmp), "getvar:max-download-size");
Expand Down Expand Up @@ -3760,6 +3749,12 @@ int main(int argc, char *argv[])
}
}

if (slot_count[0] == '2')
{
/* flash bootloader,bluetooth,dsp,modem,rdimage to booth a,b slots */
flash_booth_slots = true;
}

/*====================================== put into flash mode =======================================*/

printf("\n");
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define VERSION 47
#define VERSION 48

0 comments on commit ce15741

Please sign in to comment.