Update cli_commands.c

cli log enable
This commit is contained in:
r3df0xx 2022-03-23 23:33:58 +03:00
parent 66fa1d7c0b
commit 3cc5c285b7

View File

@ -128,9 +128,11 @@ void cli_command_date(Cli* cli, string_t args, void* context) {
void cli_command_log(Cli* cli, string_t args, void* context) {
furi_stdglue_set_global_stdout_callback(cli_stdout_callback);
furi_log_set_puts((FuriLogPuts)printf);
printf("Press any key to stop...\r\n");
cli_getc(cli);
furi_stdglue_set_global_stdout_callback(NULL);
furi_log_set_puts(furi_hal_console_puts);
}
void cli_command_vibro(Cli* cli, string_t args, void* context) {