summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCobus van Eeden <35851496+cobusve@users.noreply.github.com>2020-09-09 01:27:53 -0700
committerCobus van Eeden <35851496+cobusve@users.noreply.github.com>2020-09-09 01:27:53 -0700
commitf78ee3536aeacc4aa6b2b5853f8ffd8df73f5ed4 (patch)
tree7bdc3f9c0837620f13a86d71009ccad45d42c4cd
parent04cf45fdbc361e2b1fb3efbd1cb299440c138efa (diff)
downloadfreertos-git-f78ee3536aeacc4aa6b2b5853f8ffd8df73f5ed4.tar.gz
Reset error message on next check and update interval to 10s
-rw-r--r--FreeRTOS/Demo/Posix_GCC/main_full.c7
1 files 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";
}
}
/*-----------------------------------------------------------*/