Reset error message on next check and update interval to 10s

This commit is contained in:
Cobus van Eeden 2020-09-09 01:27:53 -07:00
parent 04cf45fdbc
commit f78ee3536a

View file

@ -265,7 +265,7 @@ int main_full( void )
static void prvCheckTask( void *pvParameters ) static void prvCheckTask( void *pvParameters )
{ {
TickType_t xNextWakeTime; TickType_t xNextWakeTime;
const TickType_t xCycleFrequency = pdMS_TO_TICKS( 2000UL ); const TickType_t xCycleFrequency = pdMS_TO_TICKS( 10000UL );
HeapStats_t xHeapStats; HeapStats_t xHeapStats;
/* Just to remove compiler warning. */ /* Just to remove compiler warning. */
@ -399,7 +399,10 @@ HeapStats_t xHeapStats;
printf( "%s - tick count %u \r\n", printf( "%s - tick count %u \r\n",
pcStatusMessage, pcStatusMessage,
xTaskGetTickCount() ); xTaskGetTickCount() );
// Reset the error condition
pcStatusMessage = "OK: No errors";
} }
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/