removing the old hardcoded type stuff from flasher.

doesn't seem to be a problem.

Signed-off-by: Mariano Alvira <mar@devl.org>
This commit is contained in:
Mariano Alvira 2009-08-06 09:56:47 -04:00
parent 427b08f7dc
commit 611370fe58

View file

@ -155,27 +155,7 @@ void main(void) {
/* for OTAP */ /* for OTAP */
for(i=0; i<len; i++) { for(i=0; i<len; i++) {
c = getc(); c = getc();
// put_hex(c); err = nvm_write(gNvmInternalInterface_c, type, &c, 8+i, 1);
// puts(": ");
/*for some reason I have to hard code the type here for it to work reliably */
// err = nvm_write(gNvmInternalInterface_c, type, &c, 4+i, 1);
switch(type)
{
case 1:
err = nvm_write(gNvmInternalInterface_c, 1, &c, 8+i, 1);
break;
case 2:
err = nvm_write(gNvmInternalInterface_c, 2, &c, 8+i, 1);
break;
case 3:
err = nvm_write(gNvmInternalInterface_c, 3, &c, 8+i, 1);
break;
}
// puts("nvm_write returned: 0x");
// put_hex(err);
// puts("\n\r");
} }
puts("flasher done\n\r"); puts("flasher done\n\r");