Commit 8aac0abf authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Fix typo

parent 06bf8003
......@@ -316,14 +316,14 @@ static tao_status on_set_config(
// Do we need to change the frame rate?
bool reduce_fps = (cfg->framerate < cam->info.config.framerate);
bool augment_fps = (cfg->framerate > cam->info.config.framerate);
bool change_expoure = (cfg->exposuretime != cam->info.config.exposuretime);
bool change_exposure = (cfg->exposuretime != cam->info.config.exposuretime);
// Reduce frame rate if possible before changing ROI.
if (reduce_fps) {
if (set_exposure(dev, cfg->exposuretime, cfg->framerate) != TAO_OK) {
return TAO_ERROR;
}
change_expoure = false;
change_exposure = false;
}
// Set binning.
......@@ -334,7 +334,7 @@ static tao_status on_set_config(
}
}
// Set image region.
// Set image area.
if (cfg->roi.xoff != cam->info.config.roi.xoff ||
cfg->roi.yoff != cam->info.config.roi.yoff ||
cfg->roi.width != cam->info.config.roi.width ||
......@@ -345,8 +345,8 @@ static tao_status on_set_config(
}
}
// Augment frame rate after changing ROI.
if (augment_fps || change_expoure) {
// Augment frame rate after changing image area.
if (augment_fps || change_exposure) {
if (set_exposure(dev, cfg->exposuretime, cfg->framerate) != TAO_OK) {
return TAO_ERROR;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment