This commit is contained in:
小马_666 2025-02-08 17:49:43 +08:00
commit 8a5f6e2e85
2 changed files with 8 additions and 8 deletions

View File

@ -196,7 +196,7 @@ static int nt26k_wakeup(struct at_device *device)
rt_pin_write(nt26k->pwr_key_pin, PIN_LOW); rt_pin_write(nt26k->pwr_key_pin, PIN_LOW);
rt_thread_mdelay(100); rt_thread_mdelay(100);
rt_pin_write(nt26k->pwr_key_pin, PIN_HIGH); rt_pin_write(nt26k->pwr_key_pin, PIN_HIGH);
nt26k->sleep_status = RT_TRUE; nt26k->sleep_status = RT_FALSE;
} }
return (RT_EOK); return (RT_EOK);
} }

View File

@ -1482,7 +1482,7 @@ static void Nt26k_Life_Thread_Entry(void *parameter)
at_delete_resp(resp); at_delete_resp(resp);
result = -RT_ETIMEOUT; 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) if (device->class->device_ops->control(device, AT_DEVICE_CTRL_POWER_ON, RT_NULL) == RT_EOK)
{ {