Skip to content

Commit

Permalink
When calculating max precipitation values, use first index too (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwitting committed Nov 19, 2023
1 parent 4e663db commit 945d803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platformio/src/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ void drawOutlookGraph(owm_hourly_t *const hourly, tm timeInfo)
#endif
float tempMax = tempMin;
#ifndef UNITS_PRECIP_POP
float precipMax = 0;
float precipMax = hourly[0].rain_1h + hourly[0].snow_1h;
#endif
int yTempMajorTicks = 5;
float newTemp = 0;
Expand Down

0 comments on commit 945d803

Please sign in to comment.