|
@@ -802,8 +802,7 @@ static rt_err_t usbhost_pm_suspend(const struct rt_device *device, rt_uint8_t mo
|
|
|
{
|
|
|
case PM_SLEEP_MODE_LIGHT:
|
|
|
case PM_SLEEP_MODE_DEEP:
|
|
|
-
|
|
|
- pNuUSBHDev->polling_thread->stat = RT_THREAD_READY;
|
|
|
+ RT_SCHED_CTX(pNuUSBHDev->polling_thread).stat = RT_THREAD_READY;
|
|
|
result = rt_thread_suspend(pNuUSBHDev->polling_thread);
|
|
|
RT_ASSERT(result == RT_EOK);
|
|
|
|