summaryrefslogtreecommitdiffstats
path: root/movement/filesystem.h
diff options
context:
space:
mode:
authorMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>2024-03-05 21:49:32 -0300
committerMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>2024-03-05 21:49:32 -0300
commitb1adbd548eabbf3212e9a53dbb8830d030b15fa7 (patch)
tree7714ae461474d8c2033de157a211835018eabee2 /movement/filesystem.h
parent6ca553e648ff0b4e72520057f1e353759949dcbe (diff)
downloadSensor-Watch-b1adbd548eabbf3212e9a53dbb8830d030b15fa7.tar.gz
Sensor-Watch-b1adbd548eabbf3212e9a53dbb8830d030b15fa7.tar.bz2
Sensor-Watch-b1adbd548eabbf3212e9a53dbb8830d030b15fa7.zip
movement: fix unintended timeout short circuiting
Currently, movement drops time out events in case the previous loop indicates that sleep is not possible due to short circuiting behavior of logical and in C: if the left-hand side is false, the right hand side is not evaluated at all, which means the loop is not called. This was not intended to happen. Fix it by storing the result in a second boolean variable and working out the logic after the fact.
Diffstat (limited to 'movement/filesystem.h')
0 files changed, 0 insertions, 0 deletions