Skip to content

Commit

Permalink
【USB】解决部分电脑卡BIOS的问题
Browse files Browse the repository at this point in the history
解决部分电脑开机/重启时,卡BIOS启动界面较长时间的问题,如联想小新air、惠普光影精灵5代
  • Loading branch information
Geno [格诺] committed Feb 21, 2023
1 parent 44c6209 commit 2444a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usb/endpoints.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ void EP0_OUT()
break;
case SETUP_STATE_OUT:
// 重置端点状态,等待下次传输
EP0_RESET();
UEP0_CTRL ^= bUEP_R_TOG; //同步标志位翻转
usb_state.setup_state = SETUP_IDLE;
break;
case SETUP_DATA_OUT:
// 似乎没有下传的数据
break;
default:
// ERROR
EP0_RESET();
UEP0_CTRL ^= bUEP_R_TOG; //同步标志位翻转
usb_state.setup_state = SETUP_IDLE;
break;
}
Expand Down

0 comments on commit 2444a46

Please sign in to comment.