diff --git a/totp/cli/cli_shared_methods.c b/totp/cli/cli_shared_methods.c index 0a76298b..ce62d50f 100644 --- a/totp/cli/cli_shared_methods.c +++ b/totp/cli/cli_shared_methods.c @@ -41,7 +41,7 @@ bool totp_cli_read_line(Cli* cli, FuriString* out_str, bool mask_user_input) { cli_read_timeout(cli, &c2, 1, 0); cli_read_timeout(cli, &c2, 1, 0); } else if(c == CliSymbolAsciiETX) { - cli_nl(); + cli_nl(cli); return false; } else if( (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || @@ -60,7 +60,7 @@ bool totp_cli_read_line(Cli* cli, FuriString* out_str, bool mask_user_input) { furi_string_left(out_str, out_str_size - 1); } } else if(c == CliSymbolAsciiCR) { - cli_nl(); + cli_nl(cli); break; } } @@ -92,4 +92,4 @@ void totp_cli_printf_missed_argument_value(char* arg) { void totp_cli_printf_unknown_argument(const FuriString* arg) { TOTP_CLI_PRINTF("Unknown argument \"%s\"\r\n", furi_string_get_cstr(arg)); -} \ No newline at end of file +} diff --git a/totp/cli/plugins/automation/automation.c b/totp/cli/plugins/automation/automation.c index 2cfc69d9..6239103b 100644 --- a/totp/cli/plugins/automation/automation.c +++ b/totp/cli/plugins/automation/automation.c @@ -131,7 +131,7 @@ static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) { print_initial_delay( plugin_state->automation_initial_delay, TOTP_CLI_COLOR_SUCCESS); TOTP_CLI_PRINTF_SUCCESS(" sec.]"); - cli_nl(); + cli_nl(cli); } else { TOTP_CLI_PRINT_ERROR_UPDATING_CONFIG_FILE(); } @@ -154,7 +154,7 @@ static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) { TOTP_CLI_PRINTF_INFO(" ["); print_initial_delay(plugin_state->automation_initial_delay, TOTP_CLI_COLOR_INFO); TOTP_CLI_PRINTF_INFO(" sec.]"); - cli_nl(); + cli_nl(cli); } } while(false); diff --git a/totp/cli/plugins/export/export.c b/totp/cli/plugins/export/export.c index 901a6f30..dd381919 100644 --- a/totp/cli/plugins/export/export.c +++ b/totp/cli/plugins/export/export.c @@ -78,7 +78,7 @@ static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) { size_t original_index = totp_token_info_iterator_get_current_token_index(iterator_context); - cli_nl(); + cli_nl(cli); TOTP_CLI_PRINTF("# --- EXPORT LIST BEGIN ---\r\n"); for(size_t i = 0; i < total_count; i++) { @@ -104,7 +104,7 @@ static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) { } else { TOTP_CLI_PRINTF("&period=%" PRIu8, token_info->duration); } - cli_nl(); + cli_nl(cli); } TOTP_CLI_PRINTF("# --- EXPORT LIST END ---\r\n\r\n"); diff --git a/totp/cli/plugins/notification/notification.c b/totp/cli/plugins/notification/notification.c index 2800df7d..cc8af6cb 100644 --- a/totp/cli/plugins/notification/notification.c +++ b/totp/cli/plugins/notification/notification.c @@ -67,7 +67,7 @@ static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) { if(totp_config_file_update_notification_method(plugin_state)) { TOTP_CLI_PRINTF_SUCCESS("Notification method is set to "); totp_cli_command_notification_print_method(new_method, TOTP_CLI_COLOR_SUCCESS); - cli_nl(); + cli_nl(cli); } else { TOTP_CLI_PRINT_ERROR_UPDATING_CONFIG_FILE(); } @@ -77,7 +77,7 @@ static void handle(PluginState* plugin_state, FuriString* args, Cli* cli) { TOTP_CLI_PRINTF_INFO("Current notification method is "); totp_cli_command_notification_print_method( plugin_state->notification_method, TOTP_CLI_COLOR_INFO); - cli_nl(); + cli_nl(cli); } } while(false); @@ -94,4 +94,4 @@ static const FlipperAppPluginDescriptor plugin_descriptor = { const FlipperAppPluginDescriptor* totp_cli_notification_plugin_ep() { return &plugin_descriptor; -} \ No newline at end of file +} diff --git a/totp/cli/plugins/pin/pin.c b/totp/cli/plugins/pin/pin.c index 8e41bffd..de17f4b2 100644 --- a/totp/cli/plugins/pin/pin.c +++ b/totp/cli/plugins/pin/pin.c @@ -66,7 +66,7 @@ static bool totp_cli_read_pin(Cli* cli, uint8_t* pin, uint8_t* pin_length) { TOTP_CLI_DELETE_LAST_CHAR(); } } else if(c == CliSymbolAsciiCR) { - cli_nl(); + cli_nl(cli); break; } } @@ -176,4 +176,4 @@ static const FlipperAppPluginDescriptor plugin_descriptor = { const FlipperAppPluginDescriptor* totp_cli_pin_plugin_ep() { return &plugin_descriptor; -} \ No newline at end of file +}