Skip to content

Commit

Permalink
Ignore other trigger parameters if 'external_trigger' is false
Browse files Browse the repository at this point in the history
  • Loading branch information
bgromov committed Aug 28, 2013
1 parent 14b6108 commit 1f69dfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nodes/trigger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ bool Trigger::reconfigure(Config *newconfig)
is_ok = false;
}

// if external trigger is OFF then ignore rest of parameters
if (DC1394_OFF == on_off) return is_ok;

on_off = (dc1394switch_t) newconfig->software_trigger;
if (!Trigger::setSoftwareTriggerPowerState(camera_, on_off))
{
Expand Down

0 comments on commit 1f69dfd

Please sign in to comment.