timer8.c: Add automated test to check for the behaviour fixed in future.

This commit is contained in:
Kelvin Lawson
2016-05-25 20:03:43 +01:00
parent 01f23be93d
commit f29a33fd62
2 changed files with 145 additions and 0 deletions

View File

@@ -488,7 +488,12 @@ static void atomTimerCallbacks (void)
next_ptr = callback_list_head;
while (next_ptr)
{
/*
* Save the next timer in the list (in case the callback
* modifies the list by registering again.
*/
saved_next_ptr = next_ptr->next_timer;
/* Call the registered callback */
if (next_ptr->cb_func)
{