Rover: Option to trig by distance only when in AUTO mode

This commit is contained in:
André Kjellstrup 2017-10-24 12:44:46 +02:00 committed by Francisco Ferreira
parent 1a63fd85d8
commit aab22d7dad
1 changed files with 3 additions and 0 deletions

View File

@ -229,6 +229,9 @@ bool Rover::set_mode(Mode &new_mode, mode_reason_t reason)
#if FRSKY_TELEM_ENABLED == ENABLED
frsky_telemetry.update_control_mode(control_mode->mode_number());
#endif
#if CAMERA == ENABLED
camera.set_is_auto_mode(control_mode->mode_number() == AUTO);
#endif
old_mode.exit();