mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-15 04:00:32 -05:00
Adding waitCycles between transfers
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user