From 6ca553e648ff0b4e72520057f1e353759949dcbe Mon Sep 17 00:00:00 2001 From: Matheus Afonso Martins Moreira Date: Tue, 5 Mar 2024 21:08:10 -0300 Subject: [PATCH] movement: convert can_sleep an automatic variable It is a simple boolean value and its scope is limited to the function. There is no reason that I can think of for it to be a static variable. --- movement/movement.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/movement/movement.c b/movement/movement.c index d780a2f3..c64df0c0 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -509,7 +509,7 @@ bool app_loop(void) { } // default to being allowed to sleep by the face. - static bool can_sleep = true; + bool can_sleep = true; if (event.event_type) { event.subsecond = movement_state.subsecond;