Commit 9328cf41 authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Fix xoff and yoff for Andor cameras

parent 5abf41fd
......@@ -1057,7 +1057,7 @@ static tao_status set_xoff(
andor_device* dev,
long val)
{
int code = AT_SetInt(dev->handle, L"AOILeft", val);
int code = AT_SetInt(dev->handle, L"AOILeft", val + 1);
if (code != AT_SUCCESS) {
andor_store_error("AT_SetInt(AOILeft)", code);
return TAO_ERROR;
......@@ -1087,7 +1087,7 @@ static tao_status set_yoff(
andor_device* dev,
long val)
{
int code = AT_SetInt(dev->handle, L"AOITop", val);
int code = AT_SetInt(dev->handle, L"AOITop", val + 1);
if (code != AT_SUCCESS) {
andor_store_error("AT_SetInt(AOITop)", code);
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