Skip to content

Commit b1c026c

Browse files
author
freepdk
committed
fix warnings from gcc-arm
1 parent b0f45f2 commit b1c026c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Firmware/source/Src/fpdkuart.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
#include "main.h"
2323
#include <stdio.h>
2424
#include <string.h>
25+
#include <inttypes.h>
2526

2627
#define FPDKUART_QUEUE_SIZE 32 //32 byte internal RX queue (-> 32 bytes transmitted from IC during debug can be buffered, sending out via USB us MUCH faster)
2728

@@ -85,8 +86,8 @@ void FPDKUART_HandleQueue(void)
8586
_uartRXAutoBaudFinished = true;
8687

8788
char connectstring[64];
88-
sprintf( connectstring, "Connected @%d baud\n", HAL_RCC_GetPCLK1Freq() / (USART1->BRR) );
89-
FPDKUSB_SendDebug(connectstring, strlen(connectstring));
89+
sprintf( connectstring, "Connected @%" PRIu32 " baud\n", HAL_RCC_GetPCLK1Freq() / USART1->BRR );
90+
FPDKUSB_SendDebug((uint8_t*)connectstring, strlen(connectstring));
9091
}
9192
}
9293
}

0 commit comments

Comments
 (0)