Skip to content

Commit

Permalink
Remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
pjalocha committed Feb 11, 2022
1 parent c440a2e commit 0f75a2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/proc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ void vTaskPROC(void* pvParameters)
TxPacket->Packet.Whiten(); // just whiten if there is no encryption
#endif
TxPacket->calcFEC(); // calculate FEC code
// #ifdef DEBUG_PRINT
#ifdef DEBUG_PRINT
xSemaphoreTake(CONS_Mutex, portMAX_DELAY);
// Format_UnsDec(CONS_UART_Write, TimeSync_Time()%60, 2);
// CONS_UART_Write('.');
Expand All @@ -613,7 +613,7 @@ void vTaskPROC(void* pvParameters)
Format_Hex(CONS_UART_Write, TxPacket->Packet.HeaderWord);
CONS_UART_Write('\r'); CONS_UART_Write('\n');
xSemaphoreGive(CONS_Mutex);
// #endif
#endif
XorShift32(RX_Random);
static uint8_t TxBackOff=0;
if(TxBackOff) TxBackOff--;
Expand Down Expand Up @@ -724,14 +724,14 @@ void vTaskPROC(void* pvParameters)
OGN_TxPacket<OGN_Packet> *TxPacket = RF_TxFIFO.getWrite();
TxPacket->Packet = PosPacket.Packet; // copy the position packet
TxPacket->Packet.Whiten(); TxPacket->calcFEC(); // whiten and calculate FEC code
// #ifdef DEBUG_PRINT
#ifdef DEBUG_PRINT
xSemaphoreTake(CONS_Mutex, portMAX_DELAY);
Format_UnsDec(CONS_UART_Write, PosTime);
Format_String(CONS_UART_Write, " (_) TxFIFO <- ");
Format_Hex(CONS_UART_Write, TxPacket->Packet.HeaderWord);
CONS_UART_Write('\r'); CONS_UART_Write('\n');
xSemaphoreGive(CONS_Mutex);
// #endif
#endif
XorShift32(RX_Random);
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
Expand Down

0 comments on commit 0f75a2a

Please sign in to comment.