fix wifi.cpp compiling
This commit is contained in:
parent
d383d0f5aa
commit
fcce252f50
|
@ -1495,13 +1495,14 @@ void WIFI_usTrigger()
|
||||||
Wifi_RXPacket& pkt = wifiMac.RXPacketQueue.front();
|
Wifi_RXPacket& pkt = wifiMac.RXPacketQueue.front();
|
||||||
if (pkt.NotStarted)
|
if (pkt.NotStarted)
|
||||||
{
|
{
|
||||||
|
#ifdef EXPERIMENTAL_WIFI_COMM
|
||||||
WIFI_RXPutWord(*(u16*)&pkt.Data[0]);
|
WIFI_RXPutWord(*(u16*)&pkt.Data[0]);
|
||||||
WIFI_RXPutWord(*(u16*)&pkt.Data[2]);
|
WIFI_RXPutWord(*(u16*)&pkt.Data[2]);
|
||||||
WIFI_RXPutWord(*(u16*)&pkt.Data[4]);
|
WIFI_RXPutWord(*(u16*)&pkt.Data[4]);
|
||||||
WIFI_RXPutWord(*(u16*)&pkt.Data[6]);
|
WIFI_RXPutWord(*(u16*)&pkt.Data[6]);
|
||||||
WIFI_RXPutWord(*(u16*)&pkt.Data[8]);
|
WIFI_RXPutWord(*(u16*)&pkt.Data[8]);
|
||||||
WIFI_RXPutWord(*(u16*)&pkt.Data[10]);
|
WIFI_RXPutWord(*(u16*)&pkt.Data[10]);
|
||||||
|
#endif
|
||||||
WIFI_triggerIRQ(WIFI_IRQ_RXSTART);
|
WIFI_triggerIRQ(WIFI_IRQ_RXSTART);
|
||||||
pkt.NotStarted = false;
|
pkt.NotStarted = false;
|
||||||
|
|
||||||
|
@ -1509,7 +1510,9 @@ void WIFI_usTrigger()
|
||||||
wifiMac.rfPins = 0x00C7;
|
wifiMac.rfPins = 0x00C7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef EXPERIMENTAL_WIFI_COMM
|
||||||
WIFI_RXPutWord(*(u16*)&pkt.Data[pkt.CurOffset]);
|
WIFI_RXPutWord(*(u16*)&pkt.Data[pkt.CurOffset]);
|
||||||
|
#endif
|
||||||
pkt.CurOffset += 2;
|
pkt.CurOffset += 2;
|
||||||
pkt.RemHWords--;
|
pkt.RemHWords--;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue