summaryrefslogtreecommitdiff
path: root/io-module
diff options
context:
space:
mode:
Diffstat (limited to 'io-module')
-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) {