diff options
| author | armink <[email protected]> | 2018-06-10 18:27:52 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2018-06-10 18:27:52 +0800 |
| commit | 3b98684664bee497611db221b01b30d391d59738 (patch) | |
| tree | d90603a9c81b6f57cd750991889de4111379ae4f /components/drivers | |
| parent | 24f633e025755a82b58815efcbdce6efc99b599c (diff) | |
[components][sfud] Fix RT_DEBUG_SFUD macro to bool type.
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/spi/sfud/inc/sfud_cfg.h | 4 | ||||
| -rw-r--r-- | components/drivers/spi/spi_flash_sfud.c | 2 |
2 files changed, 3 insertions, 3 deletions
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(...) |
