Skip to content

Commit

Permalink
USB解决卡BIOS的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Geno [格诺] authored and jim-kirisame committed Feb 20, 2023
1 parent 087a901 commit 10e6195
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 10e6195

Please sign in to comment.