> On March 29, 2019 at 2:00 PM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote: > Fixed by: > > - int deviation = min_err * srr * last_stop / 2 / baud; > + int deviation = (int)(min_err * srr * last_stop) / 2 / > + (int)baud; > > Before I sent a patch: Uli, shouldn't the formula use "(srr + 1)" > instead of "srr", as the actual sampling rate factor is one more than > the value programmed in HSSRR.SRCYC? Yes, it should. CU Uli