From 9c9893e1da834388e49d11d3d0899e7e7d156808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Fri, 14 May 2021 14:50:02 +0200 Subject: [PATCH] application: minor, double ensure debug info is only show with DEBUG enabled --- application.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/application.c b/application.c index e1b8171..ba21734 100644 --- a/application.c +++ b/application.c @@ -384,26 +384,26 @@ void main(void) #if DEBUG // show reset cause if (RCC_CSR & (RCC_CSR_LPWRRSTF | RCC_CSR_WWDGRSTF | RCC_CSR_IWDGRSTF | RCC_CSR_SFTRSTF | RCC_CSR_PORRSTF | RCC_CSR_PINRSTF)) { - puts("reset cause(s):"); + puts_debug("reset cause(s):"); if (RCC_CSR & RCC_CSR_LPWRRSTF) { - puts(" low-power"); + puts_debug(" low-power"); } if (RCC_CSR & RCC_CSR_WWDGRSTF) { - puts(" window-watchdog"); + puts_debug(" window-watchdog"); } if (RCC_CSR & RCC_CSR_IWDGRSTF) { - puts(" independent-watchdog"); + puts_debug(" independent-watchdog"); } if (RCC_CSR & RCC_CSR_SFTRSTF) { - puts(" software"); + puts_debug(" software"); } if (RCC_CSR & RCC_CSR_PORRSTF) { - puts(" POR/PDR"); + puts_debug(" POR/PDR"); } if (RCC_CSR & RCC_CSR_PINRSTF) { - puts(" pin"); + puts_debug(" pin"); } - putc('\n'); + puts_debug("\n"); RCC_CSR |= RCC_CSR_RMVF; // clear reset flags } #endif