matthias-bs / ESP32-e-Paper-Weather-Display

An ESP32 / ePaper Display for OpenWeather Report/Forecast and Local/Remote Sensor Data
Other
5 stars 1 forks source link

Improve DisplayGeneralInfoSection() for less than three virtual screens #7

Closed matthias-bs closed 1 month ago

matthias-bs commented 10 months ago

In DisplayGeneralInfoSection() it is assumed that you have at least three pages when drawing the menu! This will lead to an index out-of-bounds in Locations[ScreenNo + i] which might cause an exception.