Skip to content

Commit dcb17df

Browse files
committed
fix: correct freertos osal log setup
os_log is a global function pointer to allow redirecting logging to other targets since a while back. Freertos port should support this.
1 parent e67c63c commit dcb17df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/freertos/osal_log.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <stdarg.h>
1919
#include <stdio.h>
2020

21-
void os_log (uint8_t type, const char * fmt, ...)
21+
static void os_log_impl (uint8_t type, const char * fmt, ...)
2222
{
2323
va_list list;
2424

@@ -47,3 +47,5 @@ void os_log (uint8_t type, const char * fmt, ...)
4747
vprintf (fmt, list);
4848
va_end (list);
4949
}
50+
51+
os_log_t os_log = os_log_impl;

0 commit comments

Comments
 (0)