summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-10-11 12:02:09 -0500
committerJohn Klug <john.klug@multitech.com>2016-10-11 12:02:09 -0500
commite7eeb2a651fee2e875c0cc6ce28c5e958824a8ed (patch)
tree42b6ddf18a265796816bce95351a5598d97d7f22
parent779d639645ac7acdac617ed40fcfff5859166631 (diff)
downloadmts-io-e7eeb2a651fee2e875c0cc6ce28c5e958824a8ed.tar.gz
mts-io-e7eeb2a651fee2e875c0cc6ce28c5e958824a8ed.tar.bz2
mts-io-e7eeb2a651fee2e875c0cc6ce28c5e958824a8ed.zip
Fix oops provoked by GNSS attribute
-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 1cc2060..133719d 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -801,7 +801,7 @@ static int mts_id_eeprom_load()
if(DEVICE_CAPA(id_eeprom.capa, CAPA_GNSS)) {
attr_blength += sizeof mtcdt_0_1_gnss_attributes;
memcpy(all_attrs + current_count,mtcdt_0_1_gnss_attributes,sizeof mtcdt_0_1_gnss_attributes);
- current_count += sizeof mtcdt_0_1_wifi_bt_attributes / (sizeof (struct attribute *));
+ current_count += sizeof mtcdt_0_1_gnss_attributes / (sizeof (struct attribute *));
}
all_attrs[current_count] = (struct attribute *)NULL;
mtcdt_0_1_platform_attribute_group.attrs = all_attrs;