From a89f55b9e71ae86e20e7d16be7b8ca29a01d5b06 Mon Sep 17 00:00:00 2001 From: Lukas Kalinski Date: Mon, 21 Oct 2024 23:26:19 +0200 Subject: [PATCH] Fixed bug where not all 5V 06 DPLs were recognized by the driver. --- DeviceAdapters/CoboltOfficial/LaserFactory.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DeviceAdapters/CoboltOfficial/LaserFactory.cpp b/DeviceAdapters/CoboltOfficial/LaserFactory.cpp index e3da7695f..d3e7e0965 100644 --- a/DeviceAdapters/CoboltOfficial/LaserFactory.cpp +++ b/DeviceAdapters/CoboltOfficial/LaserFactory.cpp @@ -81,7 +81,12 @@ Laser* LaserFactory::Create( LaserDriver* driver ) Laser* laser; - if ( modelString.find( "-06-91-" ) != std::string::npos ) { + if (modelString.find("-06-51-") != std::string::npos || + modelString.find("-06-53-") != std::string::npos || + modelString.find("-06-57-") != std::string::npos || + modelString.find("-06-91-") != std::string::npos || + modelString.find("-06-93-") != std::string::npos || + modelString.find("-06-97-") != std::string::npos) { laser = new Dpl06Laser( wavelength, driver );