Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion OpenScanLib/src/Device.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "InternalErrors.h"
#include "OpenScanLibPrivate.h"

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -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) {
Expand Down
Loading