Skip to content

Conversation

@reiyawea
Copy link
Contributor

MAX_FORECASTS exists in both settings.h and esp8266-weather-station-color.ino.
In settings.h, it is unused and its value 10 is wrong (should be 12 since 12 forecasts are to be displayed). So it should be removed.

MAX_FORECASTS exists in both settings.h and esp8266-weather-station-color.ino.
In settings.h, it is unused and its value 10 is wrong (should be 12 since 12 forecasts are to be displayed).
@marcelstoer
Copy link
Member

Good catch, thanks! Those settings are really inconsistent. IMO it would be more desirable to move lines 60-77 from esp8266-weather-station-color.ino to settings.h don't you think?

@reiyawea
Copy link
Contributor Author

Good catch, thanks! Those settings are really inconsistent. IMO it would be more desirable to move lines 60-77 from esp8266-weather-station-color.ino to settings.h don't you think?

I'm afraid that it might be better to keep those lines. They are more likely to be considered "constants" or "parameters" instead of "settings", since most users may not want to change them at all. I personally think that "settings.h" should keep those must-be-set-by-user things, ie, program won't work with them unchanged.

@marcelstoer
Copy link
Member

True, that's one way to look at it.

@marcelstoer marcelstoer merged commit 5ab94da into ThingPulse:master Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants