From 1eed1378127cfb554f69cfde87e324de73b50d20 Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Wed, 24 Mar 2021 10:52:14 -0500 Subject: moved break statements from within if statements to outside. fixed a typo on line 755 --- src/eeprom_main.c | 10 ++++++---- 1 file 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) { -- cgit v1.2.3