Harmonized status text codes between second generation objects and sctdriveadpater, sctdriveobj
This commit is contained in:
@ -174,11 +174,11 @@ static int SCTDRIVCheckStatus(void *data, SConnection * pCon)
|
|||||||
SCPrintf(pCon, eError, " script %s returned %s", script, result);
|
SCPrintf(pCon, eError, " script %s returned %s", script, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (strstr(result, "busy") != NULL) {
|
if (strstr(result, "run") != NULL) {
|
||||||
return HWBusy;
|
return HWBusy;
|
||||||
} else if (strstr(result, "posfault") != NULL) {
|
} else if (strstr(result, "posfault") != NULL) {
|
||||||
return HWPosFault;
|
return HWPosFault;
|
||||||
} else if (strstr(result, "fault") != NULL) {
|
} else if (strstr(result, "error") != NULL) {
|
||||||
return HWFault;
|
return HWFault;
|
||||||
} else if (strstr(result, "idle") != NULL) {
|
} else if (strstr(result, "idle") != NULL) {
|
||||||
return HWIdle;
|
return HWIdle;
|
||||||
|
@ -212,11 +212,11 @@ static int SCTDRIVCheckStatus(void *data, SConnection * pCon)
|
|||||||
SCPrintf(pCon, eError, " script %s returned %s", script, result);
|
SCPrintf(pCon, eError, " script %s returned %s", script, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (strstr(result, "busy") != NULL) {
|
if (strstr(result, "run") != NULL) {
|
||||||
return HWBusy;
|
return HWBusy;
|
||||||
} else if (strstr(result, "posfault") != NULL) {
|
} else if (strstr(result, "posfault") != NULL) {
|
||||||
return HWPosFault;
|
return HWPosFault;
|
||||||
} else if (strstr(result, "fault") != NULL) {
|
} else if (strstr(result, "error") != NULL) {
|
||||||
return HWFault;
|
return HWFault;
|
||||||
} else if (strstr(result, "idle") != NULL) {
|
} else if (strstr(result, "idle") != NULL) {
|
||||||
return HWIdle;
|
return HWIdle;
|
||||||
|
Reference in New Issue
Block a user