From 458c1475eb003860377c023a1e2450721a3813a3 Mon Sep 17 00:00:00 2001 From: cvs Date: Fri, 27 Apr 2001 08:42:49 +0000 Subject: [PATCH] minor change in tecs driver M.Z. --- tecsdriv.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/tecsdriv.c b/tecsdriv.c index b4316903..c278430e 100644 --- a/tecsdriv.c +++ b/tecsdriv.c @@ -81,7 +81,7 @@ int argc, char *argv[]) { pEVControl self = NULL; - char pBueffel[256], result[256]; + char pBueffel[256], result[1024]; int iRet; pEVDriver pD; pTecsDriv pMe; @@ -147,7 +147,6 @@ pTecsDriv pMe = NULL; int iRet; time_t now; - static int configuring; assert(self); pMe = (pTecsDriv)self->pPrivate; @@ -162,18 +161,6 @@ /* get temperature */ iRet = TeccGet(pMe->pData, fPos); - if (iRet > 0) { - if (configuring) { - iRet = TeccWait(pMe->pData); - iRet = TeccGet(pMe->pData, fPos); - } else { - pMe->lastError = ": controller busy (configuring)"; - pMe->iLastError=2; /* fixable */ - configuring=1; - return 0; - } - } - configuring=0; if(iRet < 0) { pMe->lastError = ErrMessage; pMe->iLastError=1; /* severe */ @@ -243,8 +230,8 @@ pMe = (pTecsDriv )self->pPrivate; assert(pMe); - iRet = TeccSend(pMe->pData, pCommand, pReply,iLen); - if(iRet != 1) + iRet = CocSetGetN(pMe->pData, "send", pCommand, pReply,iLen); + if(iRet < 0) { pMe->lastError = ErrMessage; return 0;