summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eeprom_main.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/eeprom_main.c b/src/eeprom_main.c
index 61c6b8c..8b398c0 100644
--- a/src/eeprom_main.c
+++ b/src/eeprom_main.c
@@ -428,7 +428,7 @@ static void mtcdt3b_eeprom_inspect(struct mtcdt3b_eeprom_layout *mtcdt3b_eeprom)
log_info("device-id: %.32s", mtcdt3b_eeprom->device_id);
log_info("hw-version: %.32s", mtcdt3b_eeprom->hw_version);
log_info("mtcdt3b-capa-lora: %s", DEVICE_CAPA(mtcdt3b_eeprom->capa, MTCDT3B_CAPA_LORA) ? "yes" : "no");
- log_info("eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X",
+ log_info("lora-eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X",
mtcdt3b_eeprom->lora_eui[0],
mtcdt3b_eeprom->lora_eui[1],
mtcdt3b_eeprom->lora_eui[2],
@@ -577,7 +577,6 @@ int main(int argc, char *argv[]) {
char *vendor_id = NULL;
char *product_id = NULL;
char *device_id = NULL;
- char *uuid = NULL;
char *hw_version = NULL;
char *mac_addr = NULL;
char *lora_eui = NULL;
@@ -636,7 +635,11 @@ int main(int argc, char *argv[]) {
if (accessory_card) {
tmp = read(fd, (char *) &ap_eeprom, eeprom_size);
- } else {
+#ifdef MTCDT3B
+ } else if (base_board) {
+ tmp = read(fd, (char *) &mtcdt3b_eeprom, eeprom_size);
+#endif
+ } else {
tmp = read(fd, (char *) &id_eeprom, eeprom_size);
}
@@ -651,7 +654,12 @@ int main(int argc, char *argv[]) {
if (accessory_card) {
log_info("loaded ap eeprom from %s successfully", in_file);
mts_ap_eeprom_inspect(&ap_eeprom);
- } else {
+#ifdef MTCDT3B
+ } else if (base_board) {
+ log_info("loaded ap eeprom from %s successfully", in_file);
+ mtcdt3b_eeprom_inspect(&mtcdt3b_eeprom);
+#endif
+ } else {
log_info("loaded id eeprom from %s successfully", in_file);
mts_id_eeprom_inspect(&id_eeprom);
}