diff options
author | Ruben van Baarle <rubnvb@xs4all.nl> | 2022-07-25 14:48:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 14:48:06 +0300 |
commit | 3ee592cae724ca2823c96be4070cbc8ae0001e4f (patch) | |
tree | 039e675ad0036cceaa6964e9863b2f3e9b8d726d | |
parent | c22d66590e86ba27f99b79332f0ea1fd46e8ec83 (diff) |
Fix SubGHz chat immediately closing #1440
It's just an if condition which should've been inverted
Co-authored-by: あく <alleteam@gmail.com>
-rw-r--r-- | applications/subghz/subghz_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/subghz/subghz_cli.c b/applications/subghz/subghz_cli.c index 3944fc5b..eadef9f4 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); |