diff --git a/components/drivers/spi/sfud/inc/sfud_cfg.h b/components/drivers/spi/sfud/inc/sfud_cfg.h index 5dd43fa2e4..59189a9693 100644 --- a/components/drivers/spi/sfud/inc/sfud_cfg.h +++ b/components/drivers/spi/sfud/inc/sfud_cfg.h @@ -33,8 +33,8 @@ /** * It will print more information on debug mode. - * #define RT_DEBUG_SFUD 1: open debug mode */ -#if RT_DEBUG_SFUD + * #define RT_DEBUG_SFUD open debug mode */ +#ifdef RT_DEBUG_SFUD #define SFUD_DEBUG_MODE #endif diff --git a/components/drivers/spi/spi_flash_sfud.c b/components/drivers/spi/spi_flash_sfud.c index 6148215d38..2833f5c9a5 100644 --- a/components/drivers/spi/spi_flash_sfud.c +++ b/components/drivers/spi/spi_flash_sfud.c @@ -29,7 +29,7 @@ #ifdef RT_USING_SFUD -#if RT_DEBUG_SFUD +#ifdef RT_DEBUG_SFUD #define DEBUG_TRACE rt_kprintf("[SFUD] "); rt_kprintf #else #define DEBUG_TRACE(...)