TMXR: Avoid potential improper clearing of UNIT_TM_POLL flag.
As discussed in #646
This commit is contained in:
parent
b437bfc280
commit
f8bc1add59
1 changed files with 2 additions and 0 deletions
|
@ -3130,6 +3130,7 @@ if ((line < 0) || (line >= mp->lines))
|
||||||
if (mp->ldsc[line].uptr)
|
if (mp->ldsc[line].uptr)
|
||||||
mp->ldsc[line].uptr->dynflags &= ~UNIT_TM_POLL;
|
mp->ldsc[line].uptr->dynflags &= ~UNIT_TM_POLL;
|
||||||
mp->ldsc[line].uptr = uptr_poll;
|
mp->ldsc[line].uptr = uptr_poll;
|
||||||
|
mp->ldsc[line].uptr->dynflags |= UNIT_TM_POLL;
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3163,6 +3164,7 @@ if ((line < 0) || (line >= mp->lines))
|
||||||
if (mp->ldsc[line].o_uptr)
|
if (mp->ldsc[line].o_uptr)
|
||||||
mp->ldsc[line].o_uptr->dynflags &= ~UNIT_TM_POLL;
|
mp->ldsc[line].o_uptr->dynflags &= ~UNIT_TM_POLL;
|
||||||
mp->ldsc[line].o_uptr = uptr_poll;
|
mp->ldsc[line].o_uptr = uptr_poll;
|
||||||
|
mp->ldsc[line].o_uptr->dynflags |= UNIT_TM_POLL;
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue