From 3ee592cae724ca2823c96be4070cbc8ae0001e4f Mon Sep 17 00:00:00 2001 From: Ruben van Baarle Date: Mon, 25 Jul 2022 13:48:06 +0200 Subject: [PATCH] Fix SubGHz chat immediately closing #1440 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's just an if condition which should've been inverted Co-authored-by: あく --- applications/subghz/subghz_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/subghz/subghz_cli.c b/applications/subghz/subghz_cli.c index 3944fc5b5..eadef9f46 100644 --- a/applications/subghz/subghz_cli.c +++ b/applications/subghz/subghz_cli.c @@ -676,7 +676,7 @@ static void subghz_cli_command_chat(Cli* cli, string_t args) { break; } } - if(cli_is_connected(cli)) { + if(!cli_is_connected(cli)) { printf("\r\n"); chat_event.event = SubGhzChatEventUserExit; subghz_chat_worker_put_event_chat(subghz_chat, &chat_event);