| 326 | } |
| 327 | |
| 328 | static int8_t stepWeatherLevel(int8_t currentWeatherLevel, int8_t nextWeatherLevel) |
| 329 | { |
| 330 | if (nextWeatherLevel > currentWeatherLevel) |
| 331 | { |
| 332 | return currentWeatherLevel + 1; |
| 333 | } |
| 334 | |
| 335 | return currentWeatherLevel - 1; |
| 336 | } |
| 337 | |
| 338 | /** |
| 339 | * Calculates future weather development. |