优化demo代码和api接口
Change-Id: I8748413432a38b9339d23799c97f2b0d8b4c545b
diff --git a/mbtk/test/liblynq_lib_t106/lynq-qser-sms-demo.cpp b/mbtk/test/liblynq_lib_t106/lynq-qser-sms-demo.cpp
index dc8f9af..476e6da 100755
--- a/mbtk/test/liblynq_lib_t106/lynq-qser-sms-demo.cpp
+++ b/mbtk/test/liblynq_lib_t106/lynq-qser-sms-demo.cpp
@@ -103,7 +103,7 @@
ret = qser_sms_addrxmsghandler(qser_sms_handler, NULL);
if(ret == 0)
{
- printf("qser_sms_addrxmsghandler success");
+ printf("qser_sms_addrxmsghandler success\n");
}else{
printf("qser_sms_addrxmsghandler error, ret = %d\n", ret);
}
@@ -148,7 +148,7 @@
char msg[MSG_BUF] = {};
QSER_sms_info_t pt_sms_info;
// sprintf(telephony_num,"10086");//è¯·ç”¨æˆ·åŠ¡å¿…æ›¿æ¢æ¤å·ç ï¼Œéšæ„å‘è¿è¥å•†å‘çŸæ¶ˆæ¯æžæœ‰å¯èƒ½è¢«å°å·ã€‚
- sprintf(msg,"\"Chello worrld-7bit-mr!./\"");
+ sprintf(msg,"Chello worrld-7bit-mr!.");
strncpy(pt_sms_info.src_addr, argv[1], SMS_BUF);
strncpy(pt_sms_info.sms_data, msg, MSG_BUF);
pt_sms_info.format = QSER_SMS_7BIT;
@@ -161,7 +161,7 @@
ret = qser_sms_send_sms(h_sms, &pt_sms_info);
if(ret == 0)
{
- printf("send sms success");
+ printf("send sms success\n");
}else{
printf("send sms error, ret = %d\n", ret);
}
@@ -176,7 +176,7 @@
ret = qser_sms_client_deinit(h_sms);
if(ret == 0)
{
- printf("sms deinit success");
+ printf("sms deinit success\n");
}else{
printf("sms deinit error, ret = %d\n", ret);
}