From 154b1d5ec1f4aeae415b580a20117cc4de1ff7fd Mon Sep 17 00:00:00 2001 From: proddy Date: Wed, 10 Jul 2024 12:53:47 +0200 Subject: [PATCH] show if running debug mode in console --- src/console.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/console.cpp b/src/console.cpp index df9b898e1..6afa364df 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -637,7 +637,11 @@ void EMSESPShell::stopped() { void EMSESPShell::display_banner() { println(); printfln("┌───────────────────────────────────────┐"); +#ifndef EMSESP_DEBUG printfln("│ %sEMS-ESP version %-20s%s │", COLOR_BOLD_ON, EMSESP_APP_VERSION, COLOR_BOLD_OFF); +#else + printfln("│ %sEMS-ESP version %s%-8s%s │", COLOR_BOLD_ON, EMSESP_APP_VERSION, " (D)", COLOR_BOLD_OFF); +#endif printfln("│ │"); printfln("│ %shelp%s to show available commands │", COLOR_UNDERLINE, COLOR_RESET); printfln("│ %ssu%s to access admin commands │", COLOR_UNDERLINE, COLOR_RESET); @@ -685,6 +689,9 @@ void EMSESPShell::end_of_transmission() { } void EMSESPShell::main_help_function(Shell & shell, const std::vector & arguments) { + shell.println(); + shell.printfln("%s%sEMS-ESP version %s%s", COLOR_BRIGHT_GREEN, COLOR_BOLD_ON, EMSESP_APP_VERSION, COLOR_RESET); + shell.println(); shell.print_all_available_commands(); }