优化sms删除所有短信同步优化demo添加success
Change-Id: I81e1c4746e622b4c3e6033fcbb1cf1d1f41a399f
diff --git a/mbtk/liblynq_lib/src/lynq_sms.c b/mbtk/liblynq_lib/src/lynq_sms.c
index 2c56e35..ed9c1b3 100755
--- a/mbtk/liblynq_lib/src/lynq_sms.c
+++ b/mbtk/liblynq_lib/src/lynq_sms.c
@@ -342,7 +342,7 @@
//UNUSED(pt_sms_storage);
char cmgd[128] = {0};
int err = 0;
- int id_x = -1;
+
int t_storage = 0;
char mem[10] = {0};
char resp[RES_NUM_MIN] = {0};
@@ -389,12 +389,12 @@
LOGI("cpms set success. resp:%s", resp);
}
*/
-
+ uint32_t id_x = 0; //若后面其他产品是int类型则用宏控制
id_x = pt_sms_storage->storage_idx;//获取idx的值
if(id_x == -1) //delete all
{
- memcpy(cmgd, ",4", strlen(",4"));
+ memcpy(cmgd, "0,4", strlen("0,4"));
}
else
{