From bb885cf96a5826e0687698edd083f99df65a8464 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 17 Jan 2022 09:17:13 -0700 Subject: [PATCH] exception for USB-3006 --- Controller.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Controller.cpp b/Controller.cpp index 6dd8dc7..13f5629 100644 --- a/Controller.cpp +++ b/Controller.cpp @@ -155,8 +155,11 @@ bool CController::InitVocoders() const auto desc(deviceset.front().second); if (deviceset.back().second.compare(desc)) { - std::cerr << "Both devices have to be the same type: " << desc << " != " << deviceset.back().second << std::endl; - return true; + if (desc.compare(0, 9, "USB-3006 ")) // the USB-3006 device doesn't need this check + { + std::cerr << "Both devices have to be the same type: " << desc << " != " << deviceset.back().second << std::endl; + return true; + } } Edvtype dvtype = Edvtype::dv3003;