Fix DELAY() on RPi, the wrong math was making it take twice it should.
Reported by: Alexander <sht@ropnet.ru> Approved by: adrian (mentor) Approved by: re (gjb)
This commit is contained in:
parent
0f9eee39f0
commit
c58e1e485c
@ -296,7 +296,7 @@ DELAY(int usec)
|
||||
}
|
||||
|
||||
/* Get the number of times to count */
|
||||
counts = usec * ((bcm_systimer_tc.tc_frequency / 1000000) + 1);
|
||||
counts = usec * (bcm_systimer_tc.tc_frequency / 1000000) + 1;
|
||||
|
||||
first = bcm_systimer_tc_read_4(SYSTIMER_CLO);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user