diff options
author | Jesse Gilles <jgilles@multitech.com> | 2015-01-07 17:32:00 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2015-01-07 17:32:00 -0600 |
commit | ae93c853b5edd59059581c5a49a99a7326e4b31b (patch) | |
tree | f646e7e20a7963edc1d43a1ac3eea931569f734f /io-module/mts_io.c | |
parent | 9ca7d0bf3253fd3858a014fb0f86d5e329feb20a (diff) | |
download | mts-io-ae93c853b5edd59059581c5a49a99a7326e4b31b.tar.gz mts-io-ae93c853b5edd59059581c5a49a99a7326e4b31b.tar.bz2 mts-io-ae93c853b5edd59059581c5a49a99a7326e4b31b.zip |
add mtac-lora support1.1.0
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r-- | io-module/mts_io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index b3c3a10..3b2e130 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -98,6 +98,7 @@ static DEFINE_MUTEX(mts_io_mutex); #include "mtac_gpiob.c" #include "mtac_mfser.c" #include "mtac_eth.c" +#include "mtac_lora.c" /* reset button handling */ #define RESET_CHECK_PER_SEC 8 @@ -406,6 +407,11 @@ static bool load_port(int port) { log_error("failed to set up eth port info"); return false; } + } else if (strstr(ap_eeprom[port_index].product_id, PRODUCT_ID_MTAC_LORA)) { + if (! set_lora_info(port_info[port_index])) { + log_error("failed to set up lora port info"); + return false; + } } else { log_error("unknown accessory card [%s] in port %d", ap_eeprom[port_index].product_id, port); kfree(port_info[port_index]); |