mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 15:04:19 +00:00
[FL-3067] WeatherStation: fix incorrect history index increment (#2186)
This commit is contained in:
parent
dff73dfd38
commit
b0970953b9
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue