Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
custom MOTD setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Milk-Cool committed Oct 23, 2023
1 parent 3d54311 commit 395e317
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions flipper/cli/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include "cli_commands.h"
#include "cli_vcp.h"

#include <flippulator_defines.h>

#include <furi_hal_rtc.h>

#include <pthread.h>
Expand Down Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions helpers/flippulator_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Settings
#define FLIPPULATOR_HQ_AUDIO
// #define FLIPPULATOR_SINE_WAVE
#define FLIPPULATOR_CUSTOM_MOTD

// Audio defines
#ifdef FLIPPULATOR_HQ_AUDIO
Expand Down

0 comments on commit 395e317

Please sign in to comment.