> Why not simplify and just use a single 1s (1000ms) timeout ? > > Johan, > with such a timeout value, your bug would manifest itself only if > interrupts are blocked for nearly a second: would that be acceptable ? That indeed would be acceptable from my side.