summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>2024-03-05 21:08:10 -0300
committerMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>2024-03-05 21:08:10 -0300
commit6ca553e648ff0b4e72520057f1e353759949dcbe (patch)
tree0d7ed1d72f35eaaca38d3b6c7adaeaa97bcd8863
parentaf18673e1aa53091880d829a6fa4d7e23a6b4381 (diff)
downloadSensor-Watch-6ca553e648ff0b4e72520057f1e353759949dcbe.tar.gz
Sensor-Watch-6ca553e648ff0b4e72520057f1e353759949dcbe.tar.bz2
Sensor-Watch-6ca553e648ff0b4e72520057f1e353759949dcbe.zip
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.
-rw-r--r--movement/movement.c2
1 files changed, 1 insertions, 1 deletions
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;