From 3ef241d61dea3fd6c6654de5978d0a70e892581e Mon Sep 17 00:00:00 2001 From: "Mark A. Tsuchida" Date: Fri, 10 Jul 2026 16:11:56 -0500 Subject: [PATCH] Device with 0 detectors should not participate Matches the code to the existing comment. --- OpenScanLib/src/Acquisition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenScanLib/src/Acquisition.c b/OpenScanLib/src/Acquisition.c index 4ac2666..8900e03 100644 --- a/OpenScanLib/src/Acquisition.c +++ b/OpenScanLib/src/Acquisition.c @@ -89,7 +89,7 @@ OSc_RichError *OSc_Acquisition_Create(OSc_Acquisition **acq, uint32_t nch; err = OScInternal_Device_GetNumberOfChannels(detectorDevice, &nch); assert(err == OSc_OK); // Given earlier GetNumberOfChannels - if (nch >= 0) { + if (nch > 0) { OScInternal_PtrArray_Append((*acq)->detectorDevices, detectorDevice); OScInternal_NumArray_Append((*acq)->channelOffsets,