fusee: add special log level for sd card debug

This commit is contained in:
Michael Scire 2020-12-31 18:35:26 -08:00
parent ec398dc612
commit 52c7932f1f
2 changed files with 22 additions and 21 deletions

View file

@ -28,6 +28,7 @@ typedef enum {
SCREEN_LOG_LEVEL_MANDATORY = 3, /* No log prefix. */
SCREEN_LOG_LEVEL_INFO = 4,
SCREEN_LOG_LEVEL_DEBUG = 5,
SCREEN_LOG_LEVEL_SD_DEBUG = 6,
SCREEN_LOG_LEVEL_NO_PREFIX = 0x100 /* OR this to your LOG_LEVEL to prevent prefix creation. */
} ScreenLogLevel;

View file

@ -86,7 +86,7 @@ void sdmmc_info(sdmmc_t *sdmmc, char *fmt, ...) {
void sdmmc_debug(sdmmc_t *sdmmc, char *fmt, ...) {
va_list list;
va_start(list, fmt);
sdmmc_print(sdmmc, SCREEN_LOG_LEVEL_DEBUG, fmt, list);
sdmmc_print(sdmmc, SCREEN_LOG_LEVEL_SD_DEBUG, fmt, list);
va_end(list);
}