From fb19bf9bf61216bccfb86d20d948c3e641295bd1 Mon Sep 17 00:00:00 2001 From: Koennecke Mark Date: Wed, 4 Feb 2015 14:35:21 +0100 Subject: [PATCH] Harmonized status text codes between second generation objects and sctdriveadpater, sctdriveobj --- sctdriveadapter.c | 4 ++-- sctdriveobj.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;