# HG changeset patch # User Ideenmodellierer # Date 1597951538 -7200 # Node ID 4ce932235578e98f05c971b852d03954b002ec56 # Parent 9b7e3ebce4638ad4e6e305c1ce1495f75680fba0 Added compiler switch for existing debug view parameter diff -r 9b7e3ebce463 -r 4ce932235578 Discovery/Inc/configuration.h --- 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 diff -r 9b7e3ebce463 -r 4ce932235578 Discovery/Src/settings.c --- 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]; */