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.
This commit is contained in:
Matheus Afonso Martins Moreira 2024-03-05 21:08:10 -03:00
parent af18673e1a
commit 6ca553e648

View file

@ -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;