mirror of https://github.com/contiki-ng/mspsim
Only reset counter when needed
git-svn-id: https://mspsim.svn.sourceforge.net/svnroot/mspsim/mspsim@776 23d1a52b-0c3c-0410-b72d-8f29ab48fe35
This commit is contained in:
parent
bc2cf0c9c7
commit
00a8877b74
|
|
@ -748,8 +748,8 @@ public class Timer extends IOUnit {
|
|||
// Check if up or updwn and reset if counter too high...
|
||||
if (counter > data && (mode == UPDWN || mode == UP)) {
|
||||
counter = 0;
|
||||
resetCounter(cycles);
|
||||
}
|
||||
resetCounter(cycles);
|
||||
}
|
||||
ccr[index].tccr = data;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue