summaryrefslogtreecommitdiff
path: root/src/AgbRfu_LinkManager.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-11-03 09:28:45 -0500
committerGitHub <noreply@github.com>2020-11-03 09:28:45 -0500
commit99dd461befcfe3bef3ce188fea2fb372c2f21b98 (patch)
tree2b0198d394186c371987f018677d12f929a66a44 /src/AgbRfu_LinkManager.c
parent9e55ae22b19d58eca8fc0cdd2fcea9f2cca14319 (diff)
parentca950a8daf6dd95ab5dacc51f250fea7b605361c (diff)
Merge pull request #1189 from aaaaaa123456789/reverts
Undo PokeCodec's PRs and port changes
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 42cc9aea3..f6ebcc726 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 & (1 << i))
+ if ((bm_linkLossSlot >> i) & 1)
{
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) & (1 << i) && lman.linkRecoveryTimer.count[i] && --lman.linkRecoveryTimer.count[i] == 0)
+ if ((lman.linkRecoveryTimer.active >> i) & 1 && lman.linkRecoveryTimer.count[i] && --lman.linkRecoveryTimer.count[i] == 0)
{
lman.linkRecoveryTimer.active &= ~(1 << i);
bm_disconnectSlot |= (1 << i);