Commit 4e16b72e authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Augment the max. number of supported encodings

parent f46f443e
......@@ -1403,10 +1403,9 @@ static tao_status update_pixel_encodings(
return TAO_ERROR;
}
if (cnt > ANDOR_MAX_ENCODINGS) {
// FIXME: Use the logging system...
fprintf(stderr, "Warning: Fix ANDOR_MAX_ENCODINGS to be %d\n", cnt);
cnt = ANDOR_MAX_ENCODINGS;
//tao_store_error(__func__, TAO_OUT_OF_RANGE);
//return TAO_ERROR;
}
for (int idx = 0; idx < cnt; ++idx) {
status = AT_GetEnumStringByIndex(dev->handle, L"PixelEncoding",
......
......@@ -135,8 +135,7 @@ extern tao_status andor_print_supported_encodings(
/**
* The maximum number of pixel encodings.
*/
#define ANDOR_MAX_ENCODINGS 10 // from ANDOR_ENCODING_MONO8 to
// ANDOR_ENCODING_RGB8PACKED
#define ANDOR_MAX_ENCODINGS 16 // should be sufficient...
/**
* Get the name of a given pixel encoding.
......
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