Skip to content

Commit

Permalink
PTT: improved disconnect notification
Browse files Browse the repository at this point in the history
  • Loading branch information
hryamzik committed Nov 28, 2023
1 parent 34610b4 commit 7dab4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_pack/hid_app/views/hid_ptt.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,9 @@ void hid_ptt_set_connected_status(HidPushToTalk* hid_ptt, bool connected) {
furi_assert(hid_ptt);
with_view_model(
hid_ptt->view, HidPushToTalkModel * model, {
model->connected = connected;
if (!connected) {
if (!connected && model->connected) {
notification_message(hid_ptt->hid->notifications, &sequence_single_vibro);
}
model->connected = connected;
}, true);
}

0 comments on commit 7dab4d9

Please sign in to comment.