Skip to content

Commit

Permalink
Reset error message on next check and update interval to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
cobusve committed Sep 9, 2020
1 parent 04cf45f commit f78ee35
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions FreeRTOS/Demo/Posix_GCC/main_full.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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";
}
}
/*-----------------------------------------------------------*/
Expand Down

0 comments on commit f78ee35

Please sign in to comment.