[Bugfix][API-598][GNSS]Fix Set gnss mode 10 first and then uses other modes ,mode switch fails
Change-Id: I0e3bf78ed2c2f92a4b38bd6aa429da55f70db0c0
diff --git a/src/lynq/lib/liblynq-gnss/src/lynq_prop.c b/src/lynq/lib/liblynq-gnss/src/lynq_prop.c
index 3e53b59..deaacc2 100755
--- a/src/lynq/lib/liblynq-gnss/src/lynq_prop.c
+++ b/src/lynq/lib/liblynq-gnss/src/lynq_prop.c
@@ -67,6 +67,7 @@
LYNQ_STRNCPY(buffer2, val, PROPBUF_SIZE);
strncat(buffer1, "=", PROPBUF_SIZE - strlen(buffer1) - 1);
strncat(buffer1, buffer2, PROPBUF_SIZE - strlen(buffer1) - 1);
+ strncat(buffer1, "\n", PROPBUF_SIZE - strlen(buffer1) - 1);
RLOGD("After modify [%s] in file [%s]", buffer1, file_name);
changed = 1;
fprintf(fp, "%s", buffer1);
@@ -80,6 +81,7 @@
strncat(linebuffer, key, PROPBUF_SIZE - strlen(linebuffer) - 1);
strncat(linebuffer, "=", PROPBUF_SIZE - strlen(linebuffer) - 1);
strncat(linebuffer, val, PROPBUF_SIZE - strlen(linebuffer) - 1);
+ strncat(linebuffer, "\n", PROPBUF_SIZE - strlen(buffer1) - 1);
RLOGD("Add config [%s] to file [%s]", linebuffer, file_name);
res = fseek(fp, 0, SEEK_END);
if(res < 0) {