Skip to content

Commit

Permalink
Merge pull request #510 from cobolt-lasers/bugfix/not_all_5V-06DPL_re…
Browse files Browse the repository at this point in the history
…cognized

Fixed bug where not all 5V 06 DPLs were recognized by the driver.
  • Loading branch information
nicost authored Oct 25, 2024
2 parents cc08ed1 + a89f55b commit 7289fbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DeviceAdapters/CoboltOfficial/LaserFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 7289fbd

Please sign in to comment.