Skip to content

Commit

Permalink
[FL-3067] WeatherStation: fix incorrect history index increment (flip…
Browse files Browse the repository at this point in the history
  • Loading branch information
skotopes authored Dec 23, 2022
1 parent dff73df commit b097095
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ bool ws_view_receiver_input(InputEvent* event, void* context) {
ws_receiver->view,
WSReceiverModel * model,
{
if(model->idx != model->history_item - 1) model->idx++;
if(model->history_item && model->idx != model->history_item - 1) model->idx++;
},
true);
} else if(event->key == InputKeyLeft && event->type == InputTypeShort) {
Expand Down

0 comments on commit b097095

Please sign in to comment.