Skip to content

Commit ce30dad

Browse files
committed
look for deviceName
1 parent b6c2881 commit ce30dad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/OpenCOVER/plugins/hlrs/TacxFTMS/TacxFTMS.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ bool TacxFTMS::init() {
100100
std::string host = "";
101101
for (const auto& i :
102102
opencover::Input::instance()->discovery()->getDevices()) {
103-
if (i->pluginName == "TacxNeo") {
103+
if (i->deviceName == "TacxNeo") {
104104
host = i->address;
105105
std::cerr << "TacxFTMS config: UDP: TacxHost: " << host
106106
<< std::endl;
@@ -114,11 +114,11 @@ bool TacxFTMS::init() {
114114
ftmsfound = false;
115115
}
116116
}
117-
else if (i->pluginName == "Alpine") {
117+
else if (i->deviceName == "Alpine") {
118118
host = i->address;
119119
std::cerr << "TacxFTMS config: UDP: AlpineHost: " << host
120120
<< std::endl;
121-
udpAlpine = new UDPComm(host.c_str(), 10020, 10021);
121+
udpAlpine = new UDPComm(host.c_str(), serverPortAlpine, localPortAlpine);
122122
if (!udpAlpine->isBad()) {
123123
alpinefound = true;
124124
} else {

0 commit comments

Comments
 (0)