Merge branch 'simonccn-master'

This commit is contained in:
Kelvin Lawson
2016-05-25 19:44:36 +01:00

View File

@@ -488,6 +488,7 @@ static void atomTimerCallbacks (void)
next_ptr = callback_list_head; next_ptr = callback_list_head;
while (next_ptr) while (next_ptr)
{ {
saved_next_ptr = next_ptr->next_timer;
/* Call the registered callback */ /* Call the registered callback */
if (next_ptr->cb_func) if (next_ptr->cb_func)
{ {
@@ -495,7 +496,7 @@ static void atomTimerCallbacks (void)
} }
/* Move on to the next callback in the list */ /* Move on to the next callback in the list */
next_ptr = next_ptr->next_timer; next_ptr = saved_next_ptr;
} }
} }