From: Matheus Afonso Martins Moreira Date: Wed, 6 Mar 2024 01:03:54 +0000 (-0300) Subject: Merge branch 'timeout-event-and-sleep-logic' X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=8bf652f213a0bb157400f67241e9cc421a183ada;p=sensor-watch.git Merge branch 'timeout-event-and-sleep-logic' Currently, movement drops timeout events in case the previous loop indicates that sleep is not possible. This is due to unintended short circuiting behavior of && and is fixed with a temporary variable. The static qualifier of can_sleep is also removed. Helped-by: Alex Maestas Tested-by: Matheus Afonso Martins Moreira Tested-on-hardware-by: Matheus Afonso Martins Moreira Signed-off-by: Matheus Afonso Martins Moreira GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/376 --- 8bf652f213a0bb157400f67241e9cc421a183ada