diff --git a/flipper/cli/cli.c b/flipper/cli/cli.c index 270e3ec..aaf7464 100644 --- a/flipper/cli/cli.c +++ b/flipper/cli/cli.c @@ -2,6 +2,8 @@ #include "cli_commands.h" #include "cli_vcp.h" +#include + #include #include @@ -103,8 +105,30 @@ void cli_print_usage(const char* cmd, const char* usage, const char* arg) { } void cli_motd() { + #ifdef FLIPPULATOR_CUSTOM_MOTD printf("Welcome to the Flippulator CLI!\r\n"); printf("Type `help` for help.\r\n"); + #else + printf("\r\n" + " _.-------.._ -,\r\n" + " .-\"```\"--..,,_/ /`-, -, \\ \r\n" + " .:\" /:/ /'\\ \\ ,_..., `. | |\r\n" + " / ,----/:/ /`\\ _\\~`_-\"` _;\r\n" + " ' / /`\"\"\"'\\ \\ \\.~`_-' ,-\"'/ \r\n" + " | | | 0 | | .-' ,/` /\r\n" + " | ,..\\ \\ ,.-\"` ,/` /\r\n" + " ; : `/`\"\"\\` ,/--==,/-----,\r\n" + " | `-...| -.___-Z:_______J...---;\r\n" + " : ` _-'\r\n" + " _L_ _ ___ ___ ___ ___ ____--\"`___ _ ___\r\n" + "| __|| | |_ _|| _ \\| _ \\| __|| _ \\ / __|| | |_ _|\r\n" + "| _| | |__ | | | _/| _/| _| | / | (__ | |__ | |\r\n" + "|_| |____||___||_| |_| |___||_|_\\ \\___||____||___|\r\n" + "\r\n" + "Welcome to Flipper Zero Command Line Interface!\r\n" + "Read Manual https://docs.flipperzero.one\r\n" + "\r\n"); + #endif } void cli_nl(Cli* cli) { diff --git a/helpers/flippulator_defines.h b/helpers/flippulator_defines.h index 50e2b7f..8920034 100644 --- a/helpers/flippulator_defines.h +++ b/helpers/flippulator_defines.h @@ -3,6 +3,7 @@ // Settings #define FLIPPULATOR_HQ_AUDIO // #define FLIPPULATOR_SINE_WAVE +#define FLIPPULATOR_CUSTOM_MOTD // Audio defines #ifdef FLIPPULATOR_HQ_AUDIO