From 566e80abf648c05d046cd4aa90730e173fd4dd70 Mon Sep 17 00:00:00 2001 From: Skorpionm <85568270+Skorpionm@users.noreply.github.com> Date: Fri, 23 Dec 2022 12:31:14 +0400 Subject: [PATCH] [FL-3063] SubGhz: fix start navigation (#2183) --- applications/main/subghz/views/receiver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/main/subghz/views/receiver.c b/applications/main/subghz/views/receiver.c index 999eef6a..aaec2add 100644 --- a/applications/main/subghz/views/receiver.c +++ b/applications/main/subghz/views/receiver.c @@ -309,7 +309,8 @@ bool subghz_view_receiver_input(InputEvent* event, void* context) { subghz_receiver->view, SubGhzViewReceiverModel * model, { - if(model->idx != model->history_item - 1) model->idx++; + if((model->history_item != 0) && (model->idx != model->history_item - 1)) + model->idx++; }, true); } else if(event->key == InputKeyLeft && event->type == InputTypeShort) {