Tentatively remove the legacy kludge in RIOT timer handling.

This commit is contained in:
Christian Speckner 2017-02-27 00:25:06 +01:00
parent 8f93704559
commit 10245ea102
1 changed files with 1 additions and 5 deletions

View File

@ -173,11 +173,7 @@ uInt8 M6532::peek(uInt16 addr)
// Get number of clocks since timer was set
Int32 timer = timerClocks();
// Note that this constant comes from z26, and corresponds to
// 256 intervals of T1024T (ie, the maximum that the timer should hold)
// I'm not sure why this is required, but quite a few ROMs fail
// if we just check >= 0.
if(!(timer & 0x40000))
if(timer >= 0)
{
// Return at 'divide by TIMxT' interval rate
return (timer >> myIntervalShift) & 0xff;