Picasso IV autoconfig is read from the flash image, but the
initializer can run more than once while the expansion list is
scanned and sorted. loadp4rom() leaves the flash zfile positioned
later in the image, so a later dry scan read all-0xff data and the
board looked like it had no autoconfig block.
Seek back to the beginning before reading the Picasso IV
autoconfig bytes so repeated scans see the same board data.
gb->p4rom = flashromfile_open(_T("picasso_iv_flash.rom"));
}
if (gb->p4rom) {
+ zfile_fseek (gb->p4rom, 0, SEEK_SET);
zfile_fread (gb->p4autoconfig, sizeof gb->p4autoconfig, 1, gb->p4rom);
copyp4autoconfig (gb, gb->board->configtype == 3 ? 192 : 0);
if (gb->board->configtype == 3) {