From 29987bf2843df7d83b1ada5263d9452fa364fb55 Mon Sep 17 00:00:00 2001 From: Tvisha Andharia Date: Fri, 13 Dec 2024 09:00:19 -0500 Subject: [PATCH] Fix #84, Moving GetNextRtsTime call --- fsw/src/sc_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fsw/src/sc_cmds.c b/fsw/src/sc_cmds.c index 5817aa8..6e8bda5 100644 --- a/fsw/src/sc_cmds.c +++ b/fsw/src/sc_cmds.c @@ -543,8 +543,6 @@ void SC_WakeupCmd(const SC_WakeupCmd_t *Cmd) */ while (SC_OperData.NumCmdsWakeup < SC_MAX_CMDS_PER_WAKEUP) { - SC_GetNextRtsTime(); - CurrentNumCmds = SC_OperData.NumCmdsWakeup; /* @@ -559,6 +557,8 @@ void SC_WakeupCmd(const SC_WakeupCmd_t *Cmd) if (CurrentNumCmds == SC_OperData.NumCmdsWakeup) { + SC_GetNextRtsTime(); + SC_ProcessRtpCommand(); }