Mercurial > public > ostc4
changeset 492:4ce932235578
Added compiler switch for existing debug view parameter
author | Ideenmodellierer |
---|---|
date | Thu, 20 Aug 2020 21:25:38 +0200 |
parents | 9b7e3ebce463 |
children | b560e474e319 4811f3dfaa52 |
files | Discovery/Inc/configuration.h Discovery/Src/settings.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Inc/configuration.h Mon Aug 10 15:53:45 2020 +0200 +++ b/Discovery/Inc/configuration.h Thu Aug 20 21:25:38 2020 +0200 @@ -46,4 +46,7 @@ /* Enable to activate a menu item in reset menu which provide sample ring analysis / repair functionality */ /* #define ENABLE_ANALYSE_SAMPLES */ +/* Enable to have access to the debug view options (turn on / off via menu instead of compile switch) */ +/* #define HAVE_DEBUG_VIEW */ + #endif
--- a/Discovery/Src/settings.c Mon Aug 10 15:53:45 2020 +0200 +++ b/Discovery/Src/settings.c Thu Aug 20 21:25:38 2020 +0200 @@ -1051,11 +1051,16 @@ /* uint8_t showDebugInfo; */ + +#ifdef HAVE_DEBUG_VIEW if(Settings.showDebugInfo > 1) { Settings.showDebugInfo = 0; corrections++; } +#else + Settings.showDebugInfo = 0; +#endif /* uint8_t ButtonResponsiveness[4]; */