[Bugfix][T106BUG-291]fix the AT's response code;add cgir prefix;fix cgps correct response
Only Configure:No
Affected branch:master
Affected module:AT
Is it affected on both ZXIC and MTK:only ZXIC,
Self-test:Yes,
Doc Update:NO.
Change-Id: Ib05a30e5872c3dc36dc0a63bdd979a437f5afa43
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-at-common/liblynq-at-common.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-at-common/liblynq-at-common.cpp
index cacdf2d..ccb8eaa 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-at-common/liblynq-at-common.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-at-common/liblynq-at-common.cpp
@@ -24,21 +24,21 @@
void lynq_response_ok()
{
- char *str = "OK\n";
+ char *str = "OK\r\n";
handle_output(str, strlen(str), Response);
}
void lynq_response_error(int error_code)
{
char str[32] = {0};
- sprintf(str, "+CME ERROR: %d\n", error_code);
+ sprintf(str, "+CME ERROR: %d\r\n", error_code);
handle_output(str, strlen(str), Response);
}
void lynq_handle_version()
{
char buf[64] = {0};
- sprintf(buf,"%s\n",LYNQ_SW_INSIDE_VERSION);
+ sprintf(buf,"+CGIR:%s\r\n",LYNQ_SW_INSIDE_VERSION);
handle_output(buf, strlen(buf), Response);
lynq_response_ok();
return;