feat(log): add log level parameters to custom_print_cb (#3826)

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech
2022-11-24 20:54:15 +08:00
committed by GitHub
parent e7da3b247e
commit 1c2dc983b4
3 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ If you can't use `printf` or want to use a custom function to log, you can regis
For example:
```c
void my_log_cb(const char * buf)
void my_log_cb(lv_log_level_t level, const char * buf)
{
serial_send(buf, strlen(buf));
}