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 )
{
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. */
@ -400,6 +400,9 @@ HeapStats_t xHeapStats;
printf( "%s - tick count %u \r\n",
pcStatusMessage,
xTaskGetTickCount() );
// Reset the error condition
pcStatusMessage = "OK: No errors";
}
}
/*-----------------------------------------------------------*/