Consolidate Widget draw and update frequency management #297

Merged
dreed47 merged 6 commits from consolidate-time-management into dev 2025-03-17 02:07:59 +00:00
dreed47 commented 2025-03-16 17:24:56 +00:00 (Migrated from github.com)
  • Added addDrawRefreshFrequency(), addUpdateRefreshFrequency(), isItTimeToDraw() and isItTimeToUpdate() methods to Widget.cpp.
  • Changed WeatherWidget to add timers in its constructor.
  • Changed WidgetSet to only call update and draw if the timers are expired.
  • Modified WeatherWidget, Clock, Stock, Parqet and MQTT update() and draw() methods to not use their own timers if they were using them

NOTE: there may no longer be a need for the force flags in SOME cases ... but im still combing thru the code to see

issue #295

- Added addDrawRefreshFrequency(), addUpdateRefreshFrequency(), isItTimeToDraw() and isItTimeToUpdate() methods to Widget.cpp. - Changed WeatherWidget to add timers in its constructor. - Changed WidgetSet to only call update and draw if the timers are expired. - Modified WeatherWidget, Clock, Stock, Parqet and MQTT update() and draw() methods to not use their own timers if they were using them NOTE: there may no longer be a need for the force flags in SOME cases ... but im still combing thru the code to see issue #295
Sign in to join this conversation.
No description provided.