Skip to content

Commit cdd362c

Browse files
committed
remove wrong return
1 parent e8f838f commit cdd362c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ void TacxFTMS::updateThread() {
262262
// message was lost)
263263
udpNeo->send("start");
264264
}
265-
return;
266265
} else if (status >= sizeof(FTMSBikeData)) {
267266
if (!isEnabled()) {
268267
if (udpNeo) // still receiving data, send stop
@@ -275,7 +274,6 @@ void TacxFTMS::updateThread() {
275274
} else {
276275
std::cerr << "TacxFTMS::update: received invalid no. of bytes: recv="
277276
<< status << ", got=" << status << std::endl;
278-
return;
279277
}
280278
}
281279
if (udpAlpine) {
@@ -293,7 +291,6 @@ void TacxFTMS::updateThread() {
293291
// message was lost)
294292
udpAlpine->send("start");
295293
}
296-
return;
297294
} else if (status >= sizeof(AlpineData)) {
298295
if (!isEnabled()) {
299296
if (udpAlpine) // still receiving data, send stop
@@ -305,12 +302,12 @@ void TacxFTMS::updateThread() {
305302
} else {
306303
std::cerr << "Alpine::update: received invalid no. of bytes: recv="
307304
<< status << ", got=" << status << std::endl;
308-
return;
309305
}
310306
}
311307
else {
312308
usleep(5000);
313309
}
310+
return;
314311
}
315312

316313
void TacxFTMS::Initialize() {

0 commit comments

Comments
 (0)