kopia lustrzana https://github.com/pjalocha/esp32-ogn-tracker
Remove debug print
rodzic
c440a2e936
commit
0f75a2aa40
|
@ -603,7 +603,7 @@ void vTaskPROC(void* pvParameters)
|
||||||
TxPacket->Packet.Whiten(); // just whiten if there is no encryption
|
TxPacket->Packet.Whiten(); // just whiten if there is no encryption
|
||||||
#endif
|
#endif
|
||||||
TxPacket->calcFEC(); // calculate FEC code
|
TxPacket->calcFEC(); // calculate FEC code
|
||||||
// #ifdef DEBUG_PRINT
|
#ifdef DEBUG_PRINT
|
||||||
xSemaphoreTake(CONS_Mutex, portMAX_DELAY);
|
xSemaphoreTake(CONS_Mutex, portMAX_DELAY);
|
||||||
// Format_UnsDec(CONS_UART_Write, TimeSync_Time()%60, 2);
|
// Format_UnsDec(CONS_UART_Write, TimeSync_Time()%60, 2);
|
||||||
// CONS_UART_Write('.');
|
// CONS_UART_Write('.');
|
||||||
|
@ -613,7 +613,7 @@ void vTaskPROC(void* pvParameters)
|
||||||
Format_Hex(CONS_UART_Write, TxPacket->Packet.HeaderWord);
|
Format_Hex(CONS_UART_Write, TxPacket->Packet.HeaderWord);
|
||||||
CONS_UART_Write('\r'); CONS_UART_Write('\n');
|
CONS_UART_Write('\r'); CONS_UART_Write('\n');
|
||||||
xSemaphoreGive(CONS_Mutex);
|
xSemaphoreGive(CONS_Mutex);
|
||||||
// #endif
|
#endif
|
||||||
XorShift32(RX_Random);
|
XorShift32(RX_Random);
|
||||||
static uint8_t TxBackOff=0;
|
static uint8_t TxBackOff=0;
|
||||||
if(TxBackOff) TxBackOff--;
|
if(TxBackOff) TxBackOff--;
|
||||||
|
@ -724,14 +724,14 @@ void vTaskPROC(void* pvParameters)
|
||||||
OGN_TxPacket<OGN_Packet> *TxPacket = RF_TxFIFO.getWrite();
|
OGN_TxPacket<OGN_Packet> *TxPacket = RF_TxFIFO.getWrite();
|
||||||
TxPacket->Packet = PosPacket.Packet; // copy the position packet
|
TxPacket->Packet = PosPacket.Packet; // copy the position packet
|
||||||
TxPacket->Packet.Whiten(); TxPacket->calcFEC(); // whiten and calculate FEC code
|
TxPacket->Packet.Whiten(); TxPacket->calcFEC(); // whiten and calculate FEC code
|
||||||
// #ifdef DEBUG_PRINT
|
#ifdef DEBUG_PRINT
|
||||||
xSemaphoreTake(CONS_Mutex, portMAX_DELAY);
|
xSemaphoreTake(CONS_Mutex, portMAX_DELAY);
|
||||||
Format_UnsDec(CONS_UART_Write, PosTime);
|
Format_UnsDec(CONS_UART_Write, PosTime);
|
||||||
Format_String(CONS_UART_Write, " (_) TxFIFO <- ");
|
Format_String(CONS_UART_Write, " (_) TxFIFO <- ");
|
||||||
Format_Hex(CONS_UART_Write, TxPacket->Packet.HeaderWord);
|
Format_Hex(CONS_UART_Write, TxPacket->Packet.HeaderWord);
|
||||||
CONS_UART_Write('\r'); CONS_UART_Write('\n');
|
CONS_UART_Write('\r'); CONS_UART_Write('\n');
|
||||||
xSemaphoreGive(CONS_Mutex);
|
xSemaphoreGive(CONS_Mutex);
|
||||||
// #endif
|
#endif
|
||||||
XorShift32(RX_Random);
|
XorShift32(RX_Random);
|
||||||
if(PosTime && ((RX_Random&0x7)==0) ) // send if some position in the packet and at 1/8 normal rate
|
if(PosTime && ((RX_Random&0x7)==0) ) // send if some position in the packet and at 1/8 normal rate
|
||||||
RF_TxFIFO.Write(); // complete the write into the TxFIFO
|
RF_TxFIFO.Write(); // complete the write into the TxFIFO
|
||||||
|
|
Ładowanie…
Reference in New Issue