Skip to content

Commit

Permalink
silabs minor fixes (#33121)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs authored and pull[bot] committed Jul 6, 2024
1 parent d46e996 commit 2293380
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/platform/silabs/efr32/rs911x/hal/efx_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ int16_t rsi_spi_transfer(uint8_t * tx_buf, uint8_t * rx_buf, uint16_t xlen, uint
}

(void) mode; // currently not used;
error_t rsiError = RSI_ERROR_NONE;
int16_t rsiError = RSI_ERROR_NONE;

xSemaphoreTake(spiTransferLock, portMAX_DELAY);

Expand Down
2 changes: 1 addition & 1 deletion examples/platform/silabs/efr32/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void USART_IRQHandler(void)
{
#ifdef ENABLE_CHIP_SHELL
chip::NotifyShellProcess();
#elif !defined(PW_RPC_ENABLED)
#elif !defined(PW_RPC_ENABLED) && !defined(SL_WIFI)
otSysEventSignalPending();
#endif

Expand Down
4 changes: 2 additions & 2 deletions examples/platform/silabs/matter_shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ CHIP_ERROR CmdSilabsDispatch(int argc, char ** argv)
size_t arg_len = strlen(argv[i]);

/* Make sure that the next argument won't overflow the buffer */
VerifyOrExit(buff_ptr + arg_len < buff + kMaxLineLength, error = CHIP_ERROR_BUFFER_TOO_SMALL);
VerifyOrExit(buff_ptr + arg_len < buff + SL_CLI_INPUT_BUFFER_SIZE, error = CHIP_ERROR_BUFFER_TOO_SMALL);

strncpy(buff_ptr, argv[i], arg_len);
buff_ptr += arg_len;

/* Make sure that there is enough buffer for a space char */
if (buff_ptr + sizeof(char) < buff + kMaxLineLength)
if (buff_ptr + sizeof(char) < buff + SL_CLI_INPUT_BUFFER_SIZE)
{
strncpy(buff_ptr, " ", sizeof(char));
buff_ptr++;
Expand Down

0 comments on commit 2293380

Please sign in to comment.