Merge branch 'main' of https://gitee.com/SXDT-Embedded/JT-DT-YD4N02A_4G_RTT_MRS
This commit is contained in:
commit
8a5f6e2e85
|
@ -196,7 +196,7 @@ static int nt26k_wakeup(struct at_device *device)
|
|||
rt_pin_write(nt26k->pwr_key_pin, PIN_LOW);
|
||||
rt_thread_mdelay(100);
|
||||
rt_pin_write(nt26k->pwr_key_pin, PIN_HIGH);
|
||||
nt26k->sleep_status = RT_TRUE;
|
||||
nt26k->sleep_status = RT_FALSE;
|
||||
}
|
||||
return (RT_EOK);
|
||||
}
|
||||
|
|
|
@ -1482,7 +1482,7 @@ static void Nt26k_Life_Thread_Entry(void *parameter)
|
|||
at_delete_resp(resp);
|
||||
result = -RT_ETIMEOUT;
|
||||
}
|
||||
if (device->class->device_ops->control(device, AT_DEVICE_CTRL_POWER_OFF, RT_NULL) == RT_EOK)
|
||||
if (device->class->device_ops->control(device, AT_DEVICE_CTRL_WAKEUP, RT_NULL) == RT_EOK)
|
||||
{
|
||||
if (device->class->device_ops->control(device, AT_DEVICE_CTRL_POWER_ON, RT_NULL) == RT_EOK)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue