summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-11-04 17:45:02 +0200
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-11-04 18:08:58 +0200
commitc4efa9a3500fba47b68e8449c612a745674c9c7b (patch)
treeb97a65059cb1a4fcda56e41d2aebe3f1f0dab5bb /io-module/mts_io.c
parentc3ae43430ccf0cf92a4fa2d4bcf0024b53dbac7a (diff)
downloadmts-io-c4efa9a3500fba47b68e8449c612a745674c9c7b.tar.gz
mts-io-c4efa9a3500fba47b68e8449c612a745674c9c7b.tar.bz2
mts-io-c4efa9a3500fba47b68e8449c612a745674c9c7b.zip
capa-lora: log on-board lora eeprom fields only when capa-lora is set
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index f1f8cb6..f950e89 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -905,19 +905,20 @@ static int mts_id_eeprom_load()
}
log_info("uuid: %s", (char*)buf);
- log_info("lora-eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X",
- id_eeprom.lora_eui[0],
- id_eeprom.lora_eui[1],
- id_eeprom.lora_eui[2],
- id_eeprom.lora_eui[3],
- id_eeprom.lora_eui[4],
- id_eeprom.lora_eui[5],
- id_eeprom.lora_eui[6],
- id_eeprom.lora_eui[7]);
-
- log_info("lora-product-id: %.32s", id_eeprom.lora_product_id);
- log_info("lora-hw-version: %.32s", id_eeprom.lora_hw_version);
+ if (DEVICE_CAPA(id_eeprom.capa, CAPA_LORA)) {
+ log_info("lora-eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X",
+ id_eeprom.lora_eui[0],
+ id_eeprom.lora_eui[1],
+ id_eeprom.lora_eui[2],
+ id_eeprom.lora_eui[3],
+ id_eeprom.lora_eui[4],
+ id_eeprom.lora_eui[5],
+ id_eeprom.lora_eui[6],
+ id_eeprom.lora_eui[7]);
+ log_info("lora-product-id: %.32s", id_eeprom.lora_product_id);
+ log_info("lora-hw-version: %.32s", id_eeprom.lora_hw_version);
+ }
return 0;
}