forked from len0rd/rockbox
Xduoo_X3 Fix timer_set_period fail to reenable
when timer_set_period is called timer is stopped but never reenabled Change-Id: I5cfc7a2d5620ff998005e013952b25f1e0a52754
This commit is contained in:
parent
1aee168398
commit
77019c2c3c
1 changed files with 1 additions and 1 deletions
|
|
@ -78,10 +78,10 @@ bool timer_set(long cycles, bool start)
|
|||
if(start)
|
||||
{
|
||||
system_enable_irq(IRQ_TCU1);
|
||||
__tcu_start_counter(5);
|
||||
}
|
||||
|
||||
restore_irq(old_irq);
|
||||
__tcu_start_counter(5);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue