summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-10-12 15:01:46 -0500
committerJohn Klug <john.klug@multitech.com>2020-10-12 15:01:46 -0500
commitf7258a220f4aecae4b40ce2efb84ba28a2c7308f (patch)
treeaadafb8c27ae423d7e1c30ebcc78fb4c45abb316
parentdfbc7a4a8a7446da7152df2cdc395a9b19755e16 (diff)
downloadmts-io-f7258a220f4aecae4b40ce2efb84ba28a2c7308f.tar.gz
mts-io-f7258a220f4aecae4b40ce2efb84ba28a2c7308f.tar.bz2
mts-io-f7258a220f4aecae4b40ce2efb84ba28a2c7308f.zip
mts-io capability flag, cellular does not print 1 or 04.4.0
-rw-r--r--io-module/mts-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index c595973..204fd9f 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -544,7 +544,7 @@ static ssize_t mts_attr_show_product_info(struct device *dev,
mts_has_radio(id_eeprom.product_id,sizeof id_eeprom.product_id));
else
/* Newer EEPROM version with CAPA_CELLULAR */
- value = sprintf(buf, "%1d\n",DEVICE_CAPA(id_eeprom.capa, CAPA_CELLULAR));
+ value = sprintf(buf, "%1d\n",DEVICE_CAPA(id_eeprom.capa, CAPA_CELLULAR) ? 1 : 0);
} else if (strcmp(attr->attr.name, "device-id") == 0) {
value = sprintf(buf, "%.32s\n", id_eeprom.device_id);
} else if (strcmp(attr->attr.name, "uuid") == 0) {