Skip to content

Commit

Permalink
-Move processor starting logic to PV Mode when it is relevant.
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-gomez-windhover committed Feb 21, 2024
1 parent 8167393 commit ca3b728
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/main/java/com/windhoverlabs/yamcs/gdl90/GDL90Link.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,20 +576,24 @@ protected void doStart() {
}
switch (source) {
case BINARY:
initBINARYMode();
{
initBINARYMode();
}

break;
case PV:
initPVMode();
{
initPVMode();
if (!realtime) {
log.info("Starting new processor '{}'", processor.getName());
processor.startAsync();
processor.awaitRunning();
}
}
break;
default:
break;
}

if (!realtime) {
log.info("Starting new processor '{}'", processor.getName());
processor.startAsync();
processor.awaitRunning();
}
notifyStarted();
}

Expand Down

0 comments on commit ca3b728

Please sign in to comment.