Skip to content

Commit

Permalink
Revert "Remove minimum of 10 buffers in constructor, some cameras onl…
Browse files Browse the repository at this point in the history
…y allow 2"

This reverts commit 6e9ff68.

Only being allowed 2 buffers was not due to the camera, but due to too little RAM.
The system only had 4 GB, and Spinnaker only allowed 2 buffers.
But the camera did not actually work correctly with only 2 buffers.
The solution is to add more RAM, and then 10 buffer minimum is OK.
  • Loading branch information
MarkRivers committed Jul 26, 2022
1 parent 29061e4 commit cd963e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spinnakerApp/src/ADSpinnaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ ADSpinnaker::ADSpinnaker(const char *portName, int cameraId, int numSPBuffers,
//pasynTrace->setTraceMask(pasynUserSelf, ASYN_TRACE_ERROR | ASYN_TRACE_WARNING | ASYN_TRACEIO_DRIVER);

if (numSPBuffers_ == 0) numSPBuffers_ = 100;
if (numSPBuffers_ < 10) numSPBuffers_ = 10;

// Retrieve singleton reference to system object
system_ = System::GetInstance();
Expand Down

0 comments on commit cd963e7

Please sign in to comment.