From f7258a220f4aecae4b40ce2efb84ba28a2c7308f Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 12 Oct 2020 15:01:46 -0500 Subject: mts-io capability flag, cellular does not print 1 or 0 --- io-module/mts-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3