Harmonized status text codes between second generation objects and sctdriveadpater, sctdriveobj

This commit is contained in:
2015-02-04 14:35:21 +01:00
parent e23dff2141
commit fb19bf9bf6
2 changed files with 4 additions and 4 deletions

View File

@ -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;