Skip to content

Commit

Permalink
Fix SubGHz chat immediately closing #1440
Browse files Browse the repository at this point in the history
It's just an if condition which should've been inverted

Co-authored-by: あく <alleteam@gmail.com>
  • Loading branch information
RvanBaarle and skotopes authored Jul 25, 2022
1 parent c22d665 commit 3ee592c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/subghz/subghz_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ee592c

Please sign in to comment.