Skip to content

Commit

Permalink
OpenCVGrabber: attempt to stay backward compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicost committed Nov 21, 2024
1 parent 99c54ab commit 2ed58f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DeviceAdapters/OpenCVgrabber/OpenCVgrabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,9 @@ int COpenCVgrabber::OnCameraID(MM::PropertyBase* pProp, MM::ActionType eAct)
return DEVICE_OK;
}
}
// fallback, to not throw a fit with old config files
cameraID_ = 0;
return DEVICE_OK;
}
else if (eAct == MM::BeforeGet) {
for (std::pair<int, OpenCVDevice> device : devices) {
Expand Down

0 comments on commit 2ed58f9

Please sign in to comment.