diff --git a/sctdriveadapter.c b/sctdriveadapter.c index 98cf6739..c3f7e3d5 100644 --- a/sctdriveadapter.c +++ b/sctdriveadapter.c @@ -174,11 +174,11 @@ static int SCTDRIVCheckStatus(void *data, SConnection * pCon) SCPrintf(pCon, eError, " script %s returned %s", script, result); } } - if (strstr(result, "busy") != NULL) { + if (strstr(result, "run") != NULL) { return HWBusy; } else if (strstr(result, "posfault") != NULL) { return HWPosFault; - } else if (strstr(result, "fault") != NULL) { + } else if (strstr(result, "error") != NULL) { return HWFault; } else if (strstr(result, "idle") != NULL) { return HWIdle; diff --git a/sctdriveobj.c b/sctdriveobj.c index aae56d47..c47ef8a7 100644 --- a/sctdriveobj.c +++ b/sctdriveobj.c @@ -212,11 +212,11 @@ static int SCTDRIVCheckStatus(void *data, SConnection * pCon) SCPrintf(pCon, eError, " script %s returned %s", script, result); } } - if (strstr(result, "busy") != NULL) { + if (strstr(result, "run") != NULL) { return HWBusy; } else if (strstr(result, "posfault") != NULL) { return HWPosFault; - } else if (strstr(result, "fault") != NULL) { + } else if (strstr(result, "error") != NULL) { return HWFault; } else if (strstr(result, "idle") != NULL) { return HWIdle;