kopia lustrzana https://github.com/sq5bpf/k5prog
fix: reduce min flash size req for LTO FW binaries
rodzic
d68ec83d92
commit
a4408650be
3
k5prog.c
3
k5prog.c
|
@ -1007,7 +1007,8 @@ int main(int argc,char **argv)
|
||||||
close(ffd);
|
close(ffd);
|
||||||
|
|
||||||
/* arbitrary limit do that someone doesn't flash some random short file */
|
/* arbitrary limit do that someone doesn't flash some random short file */
|
||||||
if (flash_length<50000) {
|
/* reduced from 50k as LTO builds can be smaller and fail this check */
|
||||||
|
if (flash_length<40000) {
|
||||||
fprintf(stderr,"Failed to read whole eeprom from file %s (read %i), file too short or some other error\n",file,flash_length);
|
fprintf(stderr,"Failed to read whole eeprom from file %s (read %i), file too short or some other error\n",file,flash_length);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue