mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
TMXR: Avoid potential improper clearing of UNIT_TM_POLL flag.
As discussed in #646
This commit is contained in:
parent
b437bfc280
commit
f8bc1add59
@ -3130,6 +3130,7 @@ if ((line < 0) || (line >= mp->lines))
|
||||
if (mp->ldsc[line].uptr)
|
||||
mp->ldsc[line].uptr->dynflags &= ~UNIT_TM_POLL;
|
||||
mp->ldsc[line].uptr = uptr_poll;
|
||||
mp->ldsc[line].uptr->dynflags |= UNIT_TM_POLL;
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
@ -3163,6 +3164,7 @@ if ((line < 0) || (line >= mp->lines))
|
||||
if (mp->ldsc[line].o_uptr)
|
||||
mp->ldsc[line].o_uptr->dynflags &= ~UNIT_TM_POLL;
|
||||
mp->ldsc[line].o_uptr = uptr_poll;
|
||||
mp->ldsc[line].o_uptr->dynflags |= UNIT_TM_POLL;
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user