summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/status.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/status.c b/apps/status.c
index 923b549bf0..b980c4d3eb 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -152,7 +152,10 @@ void status_set_usb(bool b)
152 152
153void status_draw(bool force_redraw) 153void status_draw(bool force_redraw)
154{ 154{
155 struct status_info info; 155 /* This is static because we use memcmp() below to check for changes, and
156 the unused bytes (due to struct member alignment) might change if
157 the struct is allocated on the stack. */
158 static struct status_info info;
156 159
157#ifdef HAVE_LCD_BITMAP 160#ifdef HAVE_LCD_BITMAP
158 static struct status_info lastinfo; 161 static struct status_info lastinfo;