FreeRTOS / FreeRTOS-Kernel-Book

https://freertos.org/Documentation/RTOS_book.html
Other
252 stars 52 forks source link

Improve SW timer changing period example #96

Closed eangeloff closed 2 months ago

eangeloff commented 2 months ago

Issue #, if available:

Description of changes:

In the example in Listing 6.13, there is a flag, which should indicate that an error has been detected by CheckTasksAreRunningWithoutError(). This flag was always set, even if the result from the function call is not pdFAIL. For correct usage of the flag it should be placed inside the if condition.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.