Skip to content

Commit c38c635

Browse files
authored
Additionally fix warning about differing pointer signendess in strncmp
1 parent d7becf5 commit c38c635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/usart_dma_rx_circular/usart_dma_rx_circular.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ u8 cmd_buf[RX_BUF_LEN] = {0}; // buffer for complete command strings
1111

1212
void process_cmd(u8* buf)
1313
{
14-
if ( strncmp(buf, "toggle\r\n", 9) == 0) {
14+
if ( strncmp((char*)buf, "toggle\r\n", 9) == 0) {
1515
GPIOC->OUTDR ^= (1<<7);
1616
printf("Horay!\r\n");
1717
} else {

0 commit comments

Comments
 (0)