mirror of
https://github.com/simh/simh.git
synced 2026-01-14 15:45:18 +00:00
SCP: Fix error returned by detach_unit to SCPE_NOTATT when an attachable unit isn't currently attached
This commit is contained in:
parent
7c58a5038d
commit
8ad7dc2b93
2
scp.c
2
scp.c
@ -5258,7 +5258,7 @@ if (!(uptr->flags & UNIT_ATT)) { /* not attached? */
|
||||
if (sim_switches & SIM_SW_REST) /* restoring? */
|
||||
return SCPE_OK; /* allow detach */
|
||||
else
|
||||
return SCPE_NOATT; /* complain */
|
||||
return SCPE_NOTATT; /* complain */
|
||||
}
|
||||
if ((dptr = find_dev_from_unit (uptr)) == NULL)
|
||||
return SCPE_OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user