Skip to content

Commit

Permalink
Fixing changes to OSAL Tasks (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael D Starch <Michael.D.Starch@jpl.nasa.gov>
  • Loading branch information
thomas-bc and LeStarch authored May 23, 2024
1 parent 850ef0d commit b002099
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LedBlinker/Top/LedBlinkerTopology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void setupTopology(const TopologyState& state) {
Os::TaskString name("ReceiveTask");
// Uplink is configured for receive so a socket task is started
comm.configure(state.hostname, state.port);
comm.startSocketTask(name, true, COMM_PRIORITY, Default::STACK_SIZE);
comm.start(name, true, COMM_PRIORITY, Default::STACK_SIZE);
}
}

Expand All @@ -158,7 +158,7 @@ void startSimulatedCycle(U32 milliseconds) {
// Main loop
while (cycling) {
LedBlinker::blockDrv.callIsr();
Os::Task::delay(milliseconds);
Os::Task::delay(Fw::Time(milliseconds/1000, milliseconds % 1000));

cycleLock.lock();
cycling = cycleFlag;
Expand All @@ -178,8 +178,8 @@ void teardownTopology(const TopologyState& state) {
freeThreads(state);

// Other task clean-up.
comm.stopSocketTask();
(void)comm.joinSocketTask(nullptr);
comm.stop();
(void)comm.join();

// Resource deallocation
cmdSeq.deallocateBuffer(mallocator);
Expand Down

0 comments on commit b002099

Please sign in to comment.