]> git.earman.xyz Git - sensor-watch.git/commit
Merge branch 'timeout-event-and-sleep-logic'
authorMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Wed, 6 Mar 2024 01:03:54 +0000 (22:03 -0300)
committerMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Fri, 8 Mar 2024 09:56:55 +0000 (06:56 -0300)
commit8bf652f213a0bb157400f67241e9cc421a183ada
tree4592da292028cdf1ed687baa13f5b73eb8d5b806
parentca40d101d30ef389a1ac49ddc6bcf53c552c088c
parentb1adbd548eabbf3212e9a53dbb8830d030b15fa7
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 <git@se30.xyz>
Tested-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Tested-on-hardware-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Signed-off-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/376
movement/movement.c