summaryrefslogtreecommitdiff
path: root/io-module/mts-io.c
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-10-03 17:31:15 -0500
committerJohn Klug <john.klug@multitech.com>2019-10-03 17:31:15 -0500
commitace6855ee90434b77bdf99f915804584251a6ea1 (patch)
tree96e16f29a8985e462ce6aaf9384174479eaa70c0 /io-module/mts-io.c
parent6edda2b3a73cbf41f6f92055d8949a4095f24d33 (diff)
downloadmts-io-ace6855ee90434b77bdf99f915804584251a6ea1.tar.gz
mts-io-ace6855ee90434b77bdf99f915804584251a6ea1.tar.bz2
mts-io-ace6855ee90434b77bdf99f915804584251a6ea1.zip
MTCAP 0.2 hardware revision with optional battery4.1.4
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r--io-module/mts-io.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index 5e557fd..954da63 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -3,10 +3,7 @@
*
* Copyright (C) 2014 by Multi-Tech Systems
* Copyright (C) 2016 by Multi-Tech Systems
- *
- * Authors: James Maki <jmaki@multitech.com>
- * Jesse Gilles <jgilles@multitech.com>
- * Mike Fiore <mfiore@multitech.com>
+ * Copyright (C) 2019 by Multi-Tech Systems
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -649,7 +646,8 @@ mts_id_eeprom_load(void)
log_debug("mts_id_eeprom: noradio=%d",noradio);
if (((tmp=HW_VERSION_MTCAP_0_0),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0) ||
- ((tmp=HW_VERSION_MTCAP_0_1),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0)) {
+ ((tmp=HW_VERSION_MTCAP_0_1),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0) ||
+ ((tmp=HW_VERSION_MTCAP_0_2),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0)) {
/* See if we have no radio, and if so, prune out the stuff that follows */
if(noradio) {
struct attribute **ap = mtcap_0_0_platform_attribute_group.attrs;
@@ -864,6 +862,7 @@ mts_id_eeprom_load(void)
log_info("capa-wifi: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_WIFI) ? "yes" : "no");
log_info("capa-bluetooth: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_BLUETOOTH) ? "yes" : "no");
log_info("capa-lora: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_LORA) ? "yes" : "no");
+ log_info("capa-battery: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_BATTERY) ? "yes" : "no");
if (DEVICE_CAPA(id_eeprom.capa, CAPA_BLUETOOTH)) {
log_info("mac-bluetooth: %02X:%02X:%02X:%02X:%02X:%02X",