diff --git a/scp.c b/scp.c index db82badd..061573af 100644 --- a/scp.c +++ b/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;