mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 23:23:43 +01:00
remove unnecessary changes
This commit is contained in:
parent
dec5e8eee5
commit
204e95dfea
@ -1411,12 +1411,8 @@ static u16 rfu_STC_setSendData_org(u8 ni_or_uni, u8 bmSendSlot, u8 subFrameSize,
|
|||||||
sendSlotFlag = gRfuLinkStatus->sendSlotNIFlag;
|
sendSlotFlag = gRfuLinkStatus->sendSlotNIFlag;
|
||||||
if (sendSlotFlag & bmSendSlot)
|
if (sendSlotFlag & bmSendSlot)
|
||||||
return ERR_SLOT_BUSY;
|
return ERR_SLOT_BUSY;
|
||||||
for (bm_slot_id = 0; bm_slot_id < RFU_CHILD_MAX; ++bm_slot_id)
|
for (bm_slot_id = 0; bm_slot_id < RFU_CHILD_MAX && !((bmSendSlot >> bm_slot_id) & 1); ++bm_slot_id)
|
||||||
{
|
;
|
||||||
if ((bmSendSlot >> bm_slot_id) & 1)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (gRfuLinkStatus->parentChild == MODE_PARENT)
|
if (gRfuLinkStatus->parentChild == MODE_PARENT)
|
||||||
llFrameSize_p = &gRfuLinkStatus->remainLLFrameSizeParent;
|
llFrameSize_p = &gRfuLinkStatus->remainLLFrameSizeParent;
|
||||||
else if (gRfuLinkStatus->parentChild == MODE_CHILD)
|
else if (gRfuLinkStatus->parentChild == MODE_CHILD)
|
||||||
@ -1437,7 +1433,7 @@ static u16 rfu_STC_setSendData_org(u8 ni_or_uni, u8 bmSendSlot, u8 subFrameSize,
|
|||||||
slotStatus_NI->send.bmSlotOrg = bmSendSlot;
|
slotStatus_NI->send.bmSlotOrg = bmSendSlot;
|
||||||
slotStatus_NI->send.bmSlot = bmSendSlot;
|
slotStatus_NI->send.bmSlot = bmSendSlot;
|
||||||
slotStatus_NI->send.payloadSize = subFrameSize - frameSize;
|
slotStatus_NI->send.payloadSize = subFrameSize - frameSize;
|
||||||
if (sending)
|
if (sending != 0)
|
||||||
slotStatus_NI->send.dataType = 0;
|
slotStatus_NI->send.dataType = 0;
|
||||||
else
|
else
|
||||||
slotStatus_NI->send.dataType = 1;
|
slotStatus_NI->send.dataType = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user