diff --git a/OpenScanLib/src/Device.c b/OpenScanLib/src/Device.c index 48c37cd..d534d20 100644 --- a/OpenScanLib/src/Device.c +++ b/OpenScanLib/src/Device.c @@ -1,6 +1,7 @@ #include "InternalErrors.h" #include "OpenScanLibPrivate.h" +#include #include #include #include @@ -233,7 +234,8 @@ OScDev_NumRange *OScInternal_Device_GetZooms(OSc_Device *device) { } return ret; } - return OScInternal_NumRange_CreateContinuous(1e-6, 1e6); + return OScInternal_NumRange_CreateDiscreteFromNaNTerminated( + (double[]){1.0, NAN}); } bool OScInternal_Device_IsROIScanSupported(OSc_Device *device) {