void weather_and_time(int mode) { another_hour(mode); if (mode) weather_change(); }
void another_minute(void) { time_info.minute++; if (time_info.minute >= 60) { time_info.minute = 0; another_hour(); } }
void weather_and_time(int mode) { if (DEBUG > 3) log_info("called %s with %d", __PRETTY_FUNCTION__, mode); another_hour(mode); if (mode) weather_change(); if (time_info.hours == TIME_NOON || time_info.hours == TIME_MIDNIGHT) update_time_and_weather(); }
void weather_and_time(void) { time_t now = time(NULL); // Advance last sunday time if (now - last_sunday_time > (7 * 24 * 60 * 60)) { last_sunday_time += 7 * 24 * 60 * 60; qp_reload(0); } another_hour(); weather_change(); }