summaryrefslogtreecommitdiff
path: root/io-module/mts_capab.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_capab.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_capab.c')
-rw-r--r--io-module/mts_capab.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io-module/mts_capab.c b/io-module/mts_capab.c
index 8495d87..17c505a 100644
--- a/io-module/mts_capab.c
+++ b/io-module/mts_capab.c
@@ -25,6 +25,7 @@ static struct capab_map_s capabilities_map[] = {
{ CAPA_BLUETOOTH, "bluetooth"},
{ CAPA_WIFI, "wifi"},
{ CAPA_LORA, "lora"},
+ { CAPA_BATTERY, "battery"},
};
static ssize_t capab_show_value(struct device *dev, struct device_attribute *at, char *buf) {
@@ -48,6 +49,7 @@ static DEVICE_ATTR_RO_MTS(capa_attr_adc, "adc", capab_show_value);
static DEVICE_ATTR_RO_MTS(capa_attr_bt, "bluetooth", capab_show_value);
static DEVICE_ATTR_RO_MTS(capa_attr_wifi, "wifi", capab_show_value);
static DEVICE_ATTR_RO_MTS(capa_attr_lora, "lora", capab_show_value);
+static DEVICE_ATTR_RO_MTS(capa_attr_battery, "battery", capab_show_value);
static struct attribute *mts_capa_attributes[] = {
&capa_attr_gps.attr,
@@ -57,6 +59,7 @@ static struct attribute *mts_capa_attributes[] = {
&capa_attr_bt.attr,
&capa_attr_wifi.attr,
&capa_attr_lora.attr,
+ &capa_attr_battery.attr,
NULL,
};