malvira / contiki

To become the official git repository for the Contiki OS
http://www.contiki-os.org/
Other
0 stars 0 forks source link

config system buglet #3

Open malvira opened 11 years ago

malvira commented 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;
}
malvira commented 11 years ago

also config_valid should return 0 when bad not -1.