mirror of
https://github.com/simh/simh.git
synced 2026-03-01 17:36:49 +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:
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;
|
||||
|
||||
Reference in New Issue
Block a user