--- embedtools/src/athctl.c 2010/10/29 07:32:52 1.1.2.8 +++ embedtools/src/athctl.c 2010/11/03 14:33:22 1.1.2.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: athctl.c,v 1.1.2.8 2010/10/29 07:32:52 misho Exp $ + * $Id: athctl.c,v 1.1.2.9 2010/11/03 14:33:22 misho Exp $ * *************************************************************************/ #include "global.h" @@ -278,9 +278,9 @@ dumpFile(const char *csName, u_char *mem) VERB(2) printf("Reading EEPROM memory %p ::\n", mem); for (i = 0; i < ATH_EEPROM_SIZE / 2; i++) { if (!(i % 0x40)) { - printf("0x%04lX [", i * 2); if (i) printf("]\n"); + printf("0x%04lX [", i * 2); } if ((data = readWord(mem, i)) == -1) @@ -342,9 +342,9 @@ flashFile(const char *csName, u_char *mem) VERB(2) printf("Writing EEPROM memory %p ::\n", mem); for (i = 0; i < ATH_EEPROM_SIZE / 2; i++) { if (!(i % 0x40)) { - printf("0x%04lX [", i * 2); if (i) printf("]\n"); + printf("0x%04lX [", i * 2); } if ((data = readWord(mem, i)) == -1) @@ -483,13 +483,13 @@ main(int argc, char **argv) } if (mode & 0x10) { - if (!(basemem = devOpen(baseaddr))) - return 2; +// if (!(basemem = devOpen(baseaddr))) +// return 2; if ((ret = dumpFile(szName, basemem)) < 1) { - devClose(basemem); +// devClose(basemem); return 3; } - devClose(basemem); +// devClose(basemem); } if (mode & 0x20) { if (!(basemem = devOpen(baseaddr)))