|
|
@@ -710,7 +710,7 @@ static int cell_deinit(cell_handle_t *h)
|
|
|
{
|
|
|
int r=-1;
|
|
|
char buf[400];
|
|
|
- r = send_cmd(h, AT_CMD_QIDEACT, NULL, buf, sizeof(buf));
|
|
|
+ r = send_cmd(h, AT_CMD_QIDEACT, "="CONTEXT_ID, buf, sizeof(buf));
|
|
|
if(r==AT_OK) {
|
|
|
return r;
|
|
|
}
|
|
|
@@ -1302,7 +1302,7 @@ static void* cellular_thread(void *arg)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- //if(cnt%5==0) cell_deinit(h);
|
|
|
+ if(cnt%10==0) cell_deinit(h);
|
|
|
reset_var(h);
|
|
|
}
|
|
|
UpdateCellularManager(&h->all);
|