summaryrefslogtreecommitdiff
path: root/src/librfu_intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librfu_intr.c')
-rw-r--r--src/librfu_intr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librfu_intr.c b/src/librfu_intr.c
index 19ea60b06..d902b1c45 100644
--- a/src/librfu_intr.c
+++ b/src/librfu_intr.c
@@ -336,8 +336,8 @@ static u16 handshake_wait(u16 slot)
static void STWI_set_timer_in_RAM(u8 count)
{
- vu16* regTMCNTL = (vu16*)(REG_ADDR_TMCNT_L + gSTWIStatus->timerSelect * 4);
- vu16* regTMCNTH = (vu16*)(REG_ADDR_TMCNT_H + gSTWIStatus->timerSelect * 4);
+ vu16* regTMCNTL = &REG_TMCNT_L(gSTWIStatus->timerSelect);
+ vu16* regTMCNTH = &REG_TMCNT_H(gSTWIStatus->timerSelect);
REG_IME = 0;
switch (count)
{