Tentative fix for virtual timers problem.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15784 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-09-12 12:23:56 +00:00
parent 39742a0367
commit 8870ae8505
1 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,10 @@ static void vt_insert_first(virtual_timers_list_t *vtlp,
/* Setting up the alarm on the next deadline.*/
port_timer_set_alarm(chTimeAddX(now, currdelta));
/* Current time becomes the new "base" time.*/
now = newnow;
delay = currdelta;
}
#if !defined(CH_VT_RFCU_DISABLED)