mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
show if running debug mode in console
This commit is contained in:
@@ -637,7 +637,11 @@ void EMSESPShell::stopped() {
|
|||||||
void EMSESPShell::display_banner() {
|
void EMSESPShell::display_banner() {
|
||||||
println();
|
println();
|
||||||
printfln("┌───────────────────────────────────────┐");
|
printfln("┌───────────────────────────────────────┐");
|
||||||
|
#ifndef EMSESP_DEBUG
|
||||||
printfln("│ %sEMS-ESP version %-20s%s │", COLOR_BOLD_ON, EMSESP_APP_VERSION, COLOR_BOLD_OFF);
|
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("│ │");
|
||||||
printfln("│ %shelp%s to show available commands │", COLOR_UNDERLINE, COLOR_RESET);
|
printfln("│ %shelp%s to show available commands │", COLOR_UNDERLINE, COLOR_RESET);
|
||||||
printfln("│ %ssu%s to access admin 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<std::string> & arguments) {
|
void EMSESPShell::main_help_function(Shell & shell, const std::vector<std::string> & 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();
|
shell.print_all_available_commands();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user