# HG changeset patch # User Ideenmodellierer # Date 1611781485 -3600 # Node ID 96af744554205cbb818d48557fd99b6f804aea8e # Parent 4eba86129d3588b26ee26161c7e4bfbd9bdc38ac Development bugfix: focus state not remembered: Somehow the static in front of the focus state has disappeared. After returning it again the focus detection is available again. diff -r 4eba86129d35 -r 96af74455420 Discovery/Src/motion.c --- a/Discovery/Src/motion.c Wed Jan 27 22:03:11 2021 +0100 +++ b/Discovery/Src/motion.c Wed Jan 27 22:04:45 2021 +0100 @@ -730,7 +730,7 @@ void HandleMotionDetection(void) { detectionState_t pitchstate = DETECT_NOTHING; - uint8_t wasInFocus = 0; + static uint8_t wasInFocus = 0; evaluateMotionDelta(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading); checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading);