TIMER: Fix sim_timer_is_active for internal timer unit
This commit is contained in:
parent
b935a173e5
commit
f698a215b4
1 changed files with 1 additions and 1 deletions
|
@ -2575,7 +2575,7 @@ int32 tmr;
|
||||||
|
|
||||||
if (!(uptr->dynflags & UNIT_TMR_UNIT))
|
if (!(uptr->dynflags & UNIT_TMR_UNIT))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
for (tmr=0; tmr<SIM_NTIMERS; tmr++) {
|
for (tmr=0; tmr<=SIM_NTIMERS; tmr++) {
|
||||||
if (sim_clock_unit[tmr] == uptr)
|
if (sim_clock_unit[tmr] == uptr)
|
||||||
return sim_is_active (&sim_timer_units[tmr]);
|
return sim_is_active (&sim_timer_units[tmr]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue