mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
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:
parent
af18673e1a
commit
6ca553e648
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue