From f78ee3536aeacc4aa6b2b5853f8ffd8df73f5ed4 Mon Sep 17 00:00:00 2001 From: Cobus van Eeden <35851496+cobusve@users.noreply.github.com> Date: Wed, 9 Sep 2020 01:27:53 -0700 Subject: [PATCH] Reset error message on next check and update interval to 10s --- FreeRTOS/Demo/Posix_GCC/main_full.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/FreeRTOS/Demo/Posix_GCC/main_full.c b/FreeRTOS/Demo/Posix_GCC/main_full.c index 2f1d4b053..92b3bd3a1 100644 --- a/FreeRTOS/Demo/Posix_GCC/main_full.c +++ b/FreeRTOS/Demo/Posix_GCC/main_full.c @@ -265,7 +265,7 @@ int main_full( void ) static void prvCheckTask( void *pvParameters ) { TickType_t xNextWakeTime; -const TickType_t xCycleFrequency = pdMS_TO_TICKS( 2000UL ); +const TickType_t xCycleFrequency = pdMS_TO_TICKS( 10000UL ); HeapStats_t xHeapStats; /* Just to remove compiler warning. */ @@ -399,7 +399,10 @@ HeapStats_t xHeapStats; printf( "%s - tick count %u \r\n", pcStatusMessage, - xTaskGetTickCount() ); + xTaskGetTickCount() ); + + // Reset the error condition + pcStatusMessage = "OK: No errors"; } } /*-----------------------------------------------------------*/