Stop some function calls if motion detection is disabled, and not in setup-mode
Merge branch 'master' into y_u_or_v-diff