summaryrefslogtreecommitdiff
path: root/src/AgbRfu_LinkManager.c
diff options
context:
space:
mode:
authorPokeCodec <doremylover456@gmail.com>2020-08-20 18:27:35 -0400
committerPokeCodec <doremylover456@gmail.com>2020-08-22 00:52:45 -0400
commitcbb94035e37a99979b62d3492abfd113d8b9232f (patch)
treed4fbeedaf4afc3db3994a49712881be30a4ece4e /src/AgbRfu_LinkManager.c
parentd2c7a862c7535bc9f44254fa0230e09e8598324a (diff)
Cleaned up the 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..6fc8dc89a 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);