diff options
author | Patrick Murphy <patrick.muprphy@multitech.com> | 2021-03-24 10:52:14 -0500 |
---|---|---|
committer | Patrick Murphy <patrick.muprphy@multitech.com> | 2021-03-24 10:52:14 -0500 |
commit | 1eed1378127cfb554f69cfde87e324de73b50d20 (patch) | |
tree | 96c5d2d76e4aa7b9139646754b05bbbc94dc5912 | |
parent | adf9a7bb274f4f573ea2a196bc2d360505c0e255 (diff) | |
download | mts-id-eeprom-1eed1378127cfb554f69cfde87e324de73b50d20.tar.gz mts-id-eeprom-1eed1378127cfb554f69cfde87e324de73b50d20.tar.bz2 mts-id-eeprom-1eed1378127cfb554f69cfde87e324de73b50d20.zip |
moved break statements from within if statements to outside. fixed a typo on line 755
-rw-r--r-- | src/eeprom_main.c | 10 |
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) { |