diff --git a/bsp/src/bsp_ml307.c b/bsp/src/bsp_ml307.c index 03ab2cb..63e95a4 100644 --- a/bsp/src/bsp_ml307.c +++ b/bsp/src/bsp_ml307.c @@ -1827,10 +1827,10 @@ static void Ml307_Life_Thread_Entry(void *parameter) goto __exit; } /* Define PDP Context */ - rt_uint8_t i = 0, + rt_uint8_t i = 0; for (i = 0; i < 5; i++) { - if (at_obj_exec_cmd(client, resp, "AT+CGDCONT=1,\"IPV4V6\",\"cmnet\"") == RT_EOK) + if (at_obj_exec_cmd(device->client, resp, "AT+CGDCONT=1,\"IPV4V6\",\"cmnet\"") == RT_EOK) { LOG_D("%s device Define PDP Context Success.", device->name); break;