jharttech / MMM-weatherforecast

Custom weather module based off of the MagicMirror default weatherforecast module. This edit allows the days to be shown across the screen with added icons.
GNU General Public License v3.0
10 stars 11 forks source link

Move maxNumberOfDays early-out after min/max are calculated for last day #11

Open cal3d opened 1 year ago

cal3d commented 1 year ago

Rather than checking if maxNumberOfDays has been reached after the first entry on the last day, the check is moved to the start of the loop, ensuring that it will only be checked after the min/max calculations have been completed for the final day. This fixes issue #10