Fix SubGHz chat immediately closing #1440
It's just an if condition which should've been inverted Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
c22d66590e
commit
3ee592cae7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user