Skip to content

Commit

Permalink
fix pigweed (#25929)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs authored Apr 3, 2023
1 parent 7ccd5d4 commit bf6dc7b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/platform/silabs/efr32/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ static uint16_t lastCount; // Nb of bytes already processed from the active dmaB
#endif
#define UART_TASK_SIZE 256
#define UART_TASK_NAME "UART"
#define UART_TX_COMPLETE_BIT (1 << 0)

#ifdef CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE
#define UART_TX_MAX_BUF_LEN (CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE + 2) // \r\n
Expand Down Expand Up @@ -352,6 +351,12 @@ int16_t uartConsoleWrite(const char * Buf, uint16_t BufLength)
return UART_CONSOLE_ERR;
}

#ifdef PW_RPC_ENABLED
// Pigweed Logger is already thread safe.
UARTDRV_ForceTransmit(vcom_handle, (uint8_t *) Buf, BufLength);
return BufLength;
#endif

UartTxStruct_t workBuffer;
memcpy(workBuffer.data, Buf, BufLength);
workBuffer.length = BufLength;
Expand Down

0 comments on commit bf6dc7b

Please sign in to comment.