Open malvira opened 11 years ago
config.c restore always clobbers flash type when it should only do so if type is zero:
if (c->flags.nvmtype == 0) { nvm_detect(gNvmInternalInterface_c, &type); } c->flags.nvmtype = type;
should be
if (c->flags.nvmtype == 0) { nvm_detect(gNvmInternalInterface_c, &type); c->flags.nvmtype = type; }
also config_valid should return 0 when bad not -1.
config.c restore always clobbers flash type when it should only do so if type is zero:
should be