fix: reduce min flash size req for LTO FW binaries

pull/10/head
bricky149 2023-10-02 16:39:04 +01:00
rodzic d68ec83d92
commit a4408650be
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1007,7 +1007,8 @@ int main(int argc,char **argv)
close(ffd);
/* 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);
exit(1);
}