diff options
author | Jesse Gilles <jgilles@multitech.com> | 2015-02-25 15:05:56 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2015-02-25 15:05:56 -0600 |
commit | 1a06d05dad8eb53ba8bfb4cf45d92041b226b813 (patch) | |
tree | 74fda3d1bd4a37a16630c7f48de2457ff26f5ff3 /io-module/mts_io.c | |
parent | ae93c853b5edd59059581c5a49a99a7326e4b31b (diff) | |
download | mts-io-1a06d05dad8eb53ba8bfb4cf45d92041b226b813.tar.gz mts-io-1a06d05dad8eb53ba8bfb4cf45d92041b226b813.tar.bz2 mts-io-1a06d05dad8eb53ba8bfb4cf45d92041b226b813.zip |
Add MTAC-LORA-1.0, EUI for accessory card eeprom1.1.1
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r-- | io-module/mts_io.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index 3b2e130..1ae85e6 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -45,7 +45,7 @@ #include "mts_io.h" -#define DRIVER_VERSION "v0.9.1" +#define DRIVER_VERSION "v1.1.1" #define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>" #define DRIVER_DESC "MTS-IO Controller" #define DRIVER_NAME "mts-io" @@ -433,6 +433,18 @@ static bool load_port(int port) { ap_eeprom[port_index].mac_addr[4], ap_eeprom[port_index].mac_addr[5]); } + if (strncmp(ap_eeprom[port_index].product_id, PRODUCT_ID_MTAC_LORA, strlen(PRODUCT_ID_MTAC_LORA)) == 0) { + log_info("accessory card %d eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X", + port, + ap_eeprom[port_index].eui[0], + ap_eeprom[port_index].eui[1], + ap_eeprom[port_index].eui[2], + ap_eeprom[port_index].eui[3], + ap_eeprom[port_index].eui[4], + ap_eeprom[port_index].eui[5], + ap_eeprom[port_index].eui[6], + ap_eeprom[port_index].eui[7]); + } if (! port_info[port_index]->setup(port)) { log_error("accessory port %d setup failed", port); |