From bdb7cce4d563250f567dac299c4cab25d01bf329 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 16 Mar 2016 20:20:40 +0100 Subject: Fix occasional lag when switching animations --- src/display.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/display.h') diff --git a/src/display.h b/src/display.h index fd91994..1bf5758 100644 --- a/src/display.h +++ b/src/display.h @@ -87,6 +87,13 @@ class Display { */ animation_t *current_anim; + /** + * Internal display update counter. Incremented by multiplex(). + * update() is called (and the counter reset) whenever + * update_cnt == need_update. + */ + uint8_t update_cnt; + /** * Set to a true value by multiplex() if an update (that is, * a scroll step or a new frame) is needed. Checked and reset to -- cgit v1.2.3