1
0
Fork 0

Include bootloader v0.5.0 and expand autoupgrade to 0.4.x

This commit is contained in:
Shawn Nock 2019-06-26 12:01:41 -04:00
parent 63419ac7c0
commit f46750c4df
2 changed files with 3485 additions and 3477 deletions

File diff suppressed because it is too large Load Diff

View File

@ -390,10 +390,17 @@ void do_upload(char *filename, bool fast_mode){
printf("\n");
}
static bool bootloader_upgrade_needed(char const * const version) {
return (
!strcmp(version, "0.3.2.0") ||
!strcmp(version, "0.4.0.0") ||
!strcmp(version, "0.4.1.0"));
}
void fix_and_upload(char *filename) {
char *version = get_version();
bool has_new_bootloader = false;
if (version && !strcmp(version, "0.3.2.0") ) {
if (version && bootloader_upgrade_needed(version)) {
// Upload bootloader update payload
printf("Bootloader update required, uploading...\n");
do_upload(NULL, false);