Skip to content

Commit

Permalink
Merge pull request #233 from fixstars/fix/u3v-stop-and-go
Browse files Browse the repository at this point in the history
Removed AcquisitionStop just before AcquisitonStart
  • Loading branch information
iitaku authored Jan 31, 2024
2 parents bbd2ea9 + a90c6bd commit 30f7736
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/bb/image-io/rt_u3v.h
Original file line number Diff line number Diff line change
Expand Up @@ -897,20 +897,12 @@ class U3V {
log::info("\tDevice/USB {}::{} : {}", i, "Command", "AcquisitionMode");
}

for (auto i=0; i<devices_.size(); ++i) {
arv_device_execute_command(devices_[i].device_, "AcquisitionStop", &err_);
if (err_) {
throw std::runtime_error(err_->message);
}
log::info("\tDevice/USB {}::{} : {}", i, "Command", "AcquisitionStop");
}

for (auto i=0; i<devices_.size(); ++i) {
arv_device_execute_command(devices_[i].device_, "AcquisitionStart", &err_);
if (err_) {
throw std::runtime_error(err_->message);
}
log::info("\tDevice/USB {}::{} : {}", i, "Command", "AcquisitionMode");
log::info("\tDevice/USB {}::{} : {}", i, "Command", "AcquisitionStart");
}
}

Expand Down

0 comments on commit 30f7736

Please sign in to comment.