diff options
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r-- | io-module/mts_io.c | 25 |
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; } |