Skip to content

Commit d22103d

Browse files
author
binraymaker
committed
printf input typecast chat t uint8_t
1 parent 2cde585 commit d22103d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/usart.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
/* Exported constants --------------------------------------------------------*/
4444
/* Exported macro ------------------------------------------------------------*/
4545
#if defined(USART_PRINTF_REDIRECT)
46-
#define USART_Printf(_F, ...) { \
47-
PRINT_OutFunction(USART_Write); \
48-
PRINT_Printf((_F), __VA_ARGS__); \
46+
#define USART_Printf(_F, ...) { \
47+
PRINT_OutFunction(USART_Write); \
48+
PRINT_Printf((uint8_t*)(_F), __VA_ARGS__); \
4949
}
5050
#else
5151
#define USART_Printf(_F, ...)

0 commit comments

Comments
 (0)