13
0

Fix PF16 auto-connect

This commit is contained in:
Robin Gareus 2023-05-24 23:01:20 +02:00
parent 500a0c09e8
commit 84e38b4c65
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -109,7 +109,7 @@ FaderPort8::probe (std::string& i, std::string& o)
auto has_fp8 = [](string const& s) { auto has_fp8 = [](string const& s) {
std::string pn = AudioEngine::instance()->get_hardware_port_name_by_name (s); std::string pn = AudioEngine::instance()->get_hardware_port_name_by_name (s);
#ifdef FADERPORT16 #ifdef FADERPORT16
return pn.find ("PreSonus FP16") != string::npos; return pn.find ("PreSonus FP16 Port 1") != string::npos;
#elif defined FADERPORT2 #elif defined FADERPORT2
return pn.find ("PreSonus FP1") != string::npos; return pn.find ("PreSonus FP1") != string::npos;
#else #else