[Feature][ZXW-76]merged P48U04 base code
Change-Id: Ia14632a24eb4e8ddf720d8f53f2fe3a1b52a0a8e
diff --git a/ap/lib/libatext/ext_dev_func.c b/ap/lib/libatext/ext_dev_func.c
index 24cbc83..3b442e4 100755
--- a/ap/lib/libatext/ext_dev_func.c
+++ b/ap/lib/libatext/ext_dev_func.c
@@ -329,7 +329,6 @@
int ate_req_rcv_act(char *at_paras,int at_fd,struct at_context *context)
{
int32_t setResult = 0;
- char strAtReplyCmd[AT_CMD_MAX] = {0};
if(atoi(at_paras) == 0 || atoi(at_paras) == 1)
{
@@ -347,9 +346,8 @@
setResult = vFnPortEchoType(at_fd, OPENECHO);
if(setResult != 0)
- {
- sprintf(strAtReplyCmd,"\r\nERROR: %d\r\n", setResult);
- at_write(at_fd, strAtReplyCmd, strlen(strAtReplyCmd));
+ {
+ at_write(at_fd, "\r\nERROR\r\n", strlen("\r\nERROR\r\n"));
}
else
{