summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eeprom_main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/eeprom_main.c b/src/eeprom_main.c
index 81caa84..a29bf72 100644
--- a/src/eeprom_main.c
+++ b/src/eeprom_main.c
@@ -752,7 +752,7 @@ int main(int argc, char *argv[]) {
struct mtcdt3dc_eeprom_layout mtcdt3dc_eeprom;
memset (&mtcdt3dc_eeprom, 0, eeprom_size);
if (sizeof mtcdt3dc_eeprom != eeprom_size) {
- fprintf(stderr, "Internal error:\n mtcdt3dc_eeprom is not the correct size: expecdted %d, but %d is defined for the part\n",
+ fprintf(stderr, "Internal error:\n mtcdt3dc_eeprom is not the correct size: expected %d, but %d is defined for the part\n",
eeprom_size,sizeof mtcdt3dc_eeprom);
exit(1);
}
@@ -1017,13 +1017,14 @@ int main(int argc, char *argv[]) {
case CMD_OPT_CAPA_MTAC:
if (dc_board) {
DEVICE_CAPA_SET(mtcdt3dc_eeprom.capa, MTCDT3DC_CAPA_MTAC);
- break;
}
+ break;
+
case CMD_OPT_CAPA_SERIAL:
if (dc_board) {
DEVICE_CAPA_SET(mtcdt3dc_eeprom.capa, MTCDT3DC_CAPA_SERIAL);
- break;
}
+ break;
#endif
case CMD_OPT_CAPA_BATTERY:
DEVICE_CAPA_SET(id_eeprom.capa, CAPA_BATTERY);
@@ -1072,6 +1073,7 @@ int main(int argc, char *argv[]) {
DEVICE_CAPA_SET(mtcdt3b_eeprom.capa, MTCDT3B_CAPA_ETH_SWITCH);
}
break;
+
case CMD_OPT_ETH_SWITCH_VERSION:
if (base_board) {
uint16_t u16;
@@ -1086,8 +1088,8 @@ int main(int argc, char *argv[]) {
exit(1);
}
mtcdt3b_eeprom.hw_version_eth_switch = u16;
- break;
}
+ break;
case CMD_OPT_ETH_SWITCH_MAC_ADDR:
if (base_board) {