]> git.earman.xyz Git - sensor-watch.git/commitdiff
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)
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

1  2 
movement/movement.c

Simple merge