Skip to content

Commit

Permalink
Clean up EEPROM data dump a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
xnk committed Dec 11, 2014
1 parent dcfe020 commit b3a2225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ void EEPROM_Init( void ) {
#ifdef DUMP_EEPROM
uint8_t dumpbuf[256];
EEPROM_Read(dumpbuf, 0, sizeof(dumpbuf));
printf("\nEEPROM contents:\n");
printf("\nEEPROM contents:");
for(int foo=0; foo < sizeof(dumpbuf); foo++) {
printf(" 0x%02x",dumpbuf[foo]);
if( (foo & 0x0f) == 0 ) printf("\n0x%04x:",foo);
printf(" %02x",dumpbuf[foo]);
}
#endif
// No init needed at this point, maybe detect the actual presence some day
Expand Down

0 comments on commit b3a2225

Please sign in to comment.