Stop some function calls if motion detection is disabled, and not in setup-mode