From 825ac8d4f35e98c530ff136de7525a3a56ae0280 Mon Sep 17 00:00:00 2001 From: jdfiguer Date: Mon, 10 Jun 2024 10:03:47 -0400 Subject: [PATCH] Fix #125, Adds JSC 2.1 Static Analysis comments --- fsw/src/hs_monitors.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fsw/src/hs_monitors.c b/fsw/src/hs_monitors.c index 718ce17..da6adb6 100644 --- a/fsw/src/hs_monitors.c +++ b/fsw/src/hs_monitors.c @@ -416,6 +416,7 @@ void HS_MonitorUtilization(void) HS_AppData.CurrentCPUHoggingTime = 0; } + /* SAD: The wrap around logic prior to index access, ensures the index stays within the bounds of the buffer */ HS_AppData.UtilizationTracker[ThisUtilIndex] = CurrentUtil; for (UtilIndex = 0; UtilIndex < HS_UTIL_PEAK_NUM_INTERVAL; UtilIndex++)