summaryrefslogtreecommitdiff
path: root/src/AgbRfu_LinkManager.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-08-30 15:27:08 -0400
committerGitHub <noreply@github.com>2020-08-30 15:27:08 -0400
commitcdc19a0b07b7fbd97f8dfc5935b18d0acf9b22d5 (patch)
treec391f38bccdff23e312ad97b6c378e0c778591df /src/AgbRfu_LinkManager.c
parent38298c3f1b96932acdad206d70f75ae24194e687 (diff)
parent6d153c6b91da45c31d4d6cd20b534bb7ee78c4e3 (diff)
Merge pull request #1144 from PokeCodec/libgbasyscall
Cleanup and fix mistakes in libraries
Diffstat (limited to 'src/AgbRfu_LinkManager.c')
-rw-r--r--src/AgbRfu_LinkManager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AgbRfu_LinkManager.c b/src/AgbRfu_LinkManager.c
index f6ebcc726..42cc9aea3 100644
--- a/src/AgbRfu_LinkManager.c
+++ b/src/AgbRfu_LinkManager.c
@@ -352,7 +352,7 @@ static bool8 rfu_LMAN_linkWatcher(u16 REQ_commandID)
{
for (i = 0; i < RFU_CHILD_MAX; i++)
{
- if ((bm_linkLossSlot >> i) & 1)
+ if (bm_linkLossSlot & (1 << i))
{
lman.linkRecoveryTimer.active |= (1 << i);
lman.linkRecoveryTimer.count[i] = lman.linkRecoveryTimer.count_max;
@@ -396,7 +396,7 @@ static bool8 rfu_LMAN_linkWatcher(u16 REQ_commandID)
bm_disconnectSlot = 0;
for (i = 0; i < RFU_CHILD_MAX; i++)
{
- if ((lman.linkRecoveryTimer.active >> i) & 1 && lman.linkRecoveryTimer.count[i] && --lman.linkRecoveryTimer.count[i] == 0)
+ if ((lman.linkRecoveryTimer.active) & (1 << i) && lman.linkRecoveryTimer.count[i] && --lman.linkRecoveryTimer.count[i] == 0)
{
lman.linkRecoveryTimer.active &= ~(1 << i);
bm_disconnectSlot |= (1 << i);