diff --git a/bsp/imxrt/libraries/MIMXRT1020/MIMXRT1021/utilities/debug_console_lite/fsl_debug_console.c b/bsp/imxrt/libraries/MIMXRT1020/MIMXRT1021/utilities/debug_console_lite/fsl_debug_console.c index 0cad5f81fd..df5a935830 100644 --- a/bsp/imxrt/libraries/MIMXRT1020/MIMXRT1021/utilities/debug_console_lite/fsl_debug_console.c +++ b/bsp/imxrt/libraries/MIMXRT1020/MIMXRT1021/utilities/debug_console_lite/fsl_debug_console.c @@ -987,7 +987,7 @@ static int DbgConsole_PrintfFormattedData(PUTCHAR_FUNC func_ptr, const char *fmt } else { - if (0U == (flags_used & (uint32_t)kPRINTF_Pound)) + if (0U == (flags_used & (uint32_t)kPRINTF_Minus)) { if (0U != (flags_used & (uint32_t)kPRINTF_Pound)) { diff --git a/bsp/imxrt/libraries/MIMXRT1060/MIMXRT1060/utilities/debug_console_lite/fsl_debug_console.c b/bsp/imxrt/libraries/MIMXRT1060/MIMXRT1060/utilities/debug_console_lite/fsl_debug_console.c index 5388ae2be3..977e7cd5c6 100644 --- a/bsp/imxrt/libraries/MIMXRT1060/MIMXRT1060/utilities/debug_console_lite/fsl_debug_console.c +++ b/bsp/imxrt/libraries/MIMXRT1060/MIMXRT1060/utilities/debug_console_lite/fsl_debug_console.c @@ -988,7 +988,7 @@ static int DbgConsole_PrintfFormattedData(PUTCHAR_FUNC func_ptr, const char *fmt } else { - if (0U == (flags_used & (uint32_t)kPRINTF_Pound)) + if (0U == (flags_used & (uint32_t)kPRINTF_Minus)) { if (0U != (flags_used & (uint32_t)kPRINTF_Pound)) { diff --git a/bsp/imxrt/libraries/MIMXRT1170/MIMXRT1176/utilities/debug_console_lite/fsl_debug_console.c b/bsp/imxrt/libraries/MIMXRT1170/MIMXRT1176/utilities/debug_console_lite/fsl_debug_console.c index 64804089cf..5550f7f47e 100644 --- a/bsp/imxrt/libraries/MIMXRT1170/MIMXRT1176/utilities/debug_console_lite/fsl_debug_console.c +++ b/bsp/imxrt/libraries/MIMXRT1170/MIMXRT1176/utilities/debug_console_lite/fsl_debug_console.c @@ -988,7 +988,7 @@ static int DbgConsole_PrintfFormattedData(PUTCHAR_FUNC func_ptr, const char *fmt } else { - if (0U == (flags_used & (uint32_t)kPRINTF_Pound)) + if (0U == (flags_used & (uint32_t)kPRINTF_Minus)) { if (0U != (flags_used & (uint32_t)kPRINTF_Pound)) {