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:
1 parent
af18673e1a
commit
6ca553e648
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user