Commit a1519276bd81f6c1ce41a0b31f35a50add852caa
1 parent
b07eb3a212
Exists in
v2014.04-smarct33
Read Board Info from EEPROM
Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff
board/embedian/smarct335x/board.c
... | ... | @@ -629,6 +629,15 @@ |
629 | 629 | if (read_eeprom(&header) < 0) |
630 | 630 | puts("Could not get board ID.\n"); |
631 | 631 | |
632 | + puts("-----------------------------------------\n"); | |
633 | + printf("Board ID: %.*s\n", | |
634 | + sizeof(header.name), header.name); | |
635 | + printf("Board Revision: %.*s\n", | |
636 | + sizeof(header.version), header.version); | |
637 | + printf("Board Serial#: %.*s\n", | |
638 | + sizeof(header.serial), header.serial); | |
639 | + puts("-----------------------------------------\n"); | |
640 | + | |
632 | 641 | /* Now set variables based on the header. */ |
633 | 642 | strncpy(safe_string, (char *)header.name, sizeof(header.name)); |
634 | 643 | safe_string[sizeof(header.name)] = 0; |