From b0970953b9e29065a809e0a16abe960397fa373a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=81=8F?= Date: Fri, 23 Dec 2022 22:46:35 +0900 Subject: [PATCH] [FL-3067] WeatherStation: fix incorrect history index increment (#2186) --- .../plugins/weather_station/views/weather_station_receiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/plugins/weather_station/views/weather_station_receiver.c b/applications/plugins/weather_station/views/weather_station_receiver.c index 124065e3..de5d7b1a 100644 --- a/applications/plugins/weather_station/views/weather_station_receiver.c +++ b/applications/plugins/weather_station/views/weather_station_receiver.c @@ -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) {