Adding waitCycles between transfers

This commit is contained in:
Rodrigo Alfonso
2020-11-17 11:45:22 -03:00
parent 935cae5eb7
commit ce2edf56db
3 changed files with 56 additions and 19 deletions

View File

@@ -60,6 +60,7 @@ inline void setUpInterrupts() {
// LinkConnection
irq_add(II_VBLANK, LINK_ISR_VBLANK);
irq_add(II_TIMER3, LINK_ISR_TIMER);
irq_add(II_TIMER2, NULL);
irq_add(II_SERIAL, LINK_ISR_SERIAL);
// A+B+START+SELECT

View File

@@ -69,7 +69,7 @@ void TestScene::tick(u16 keys) {
// determine which value should be sent
u16 value = LINK_NO_DATA;
if (!initialized && linkConnection->linkState->currentPlayerId == 1) {
if (!initialized && linkState->currentPlayerId == 1) {
initialized = true;
value = 999;
}