Include bootloader v0.5.0 and expand autoupgrade to 0.4.x
This commit is contained in:
parent
63419ac7c0
commit
f46750c4df
6953
src/fixkey-payload.h
6953
src/fixkey-payload.h
File diff suppressed because it is too large
Load Diff
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue