Remove redundant year/month date globals

This commit is contained in:
Jonathan G Rennison
2020-07-07 17:53:54 +01:00
parent c7f6a711b3
commit 53f9fa139d
9 changed files with 26 additions and 30 deletions

View File

@@ -1007,9 +1007,9 @@ void NewsLoop()
static byte _last_clean_month = 0;
if (_last_clean_month != _cur_month) {
if (_last_clean_month != _cur_date_ymd.month) {
RemoveOldNewsItems();
_last_clean_month = _cur_month;
_last_clean_month = _cur_date_ymd.month;
}
if (ReadyForNextTickerItem()) MoveToNextTickerItem();