return to txNormalState when setting GetReplyFailed
r2928 | jgn | 2010-05-19 12:12:51 +1000 (Wed, 19 May 2010) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
5811f125a9
commit
b9a550fd8d
@@ -168,6 +168,7 @@ int RFAmpReading (Ascon *a)
|
|||||||
switches=opstate=K3=K2=K1=outOn=CC=CV=heat=0;
|
switches=opstate=K3=K2=K1=outOn=CC=CV=heat=0;
|
||||||
|
|
||||||
if(data->transactInProg == txPostSet){
|
if(data->transactInProg == txPostSet){
|
||||||
|
|
||||||
data->transactInProg = txCheckReply;
|
data->transactInProg = txCheckReply;
|
||||||
|
|
||||||
DynStringReplaceWithLen(a->wrBuffer, data->statusCmd, 0, LCMDLEN);
|
DynStringReplaceWithLen(a->wrBuffer, data->statusCmd, 0, LCMDLEN);
|
||||||
@@ -276,7 +277,9 @@ int RFAmpReading (Ascon *a)
|
|||||||
}
|
}
|
||||||
if (GetReplyFailed) {
|
if (GetReplyFailed) {
|
||||||
a->state = AsconReadDone;
|
a->state = AsconReadDone;
|
||||||
|
a->noResponse = 1;
|
||||||
a->readState = 0;
|
a->readState = 0;
|
||||||
|
data->transactInProg = txNormalRead;
|
||||||
AsconError(a, errMsg, errNum);
|
AsconError(a, errMsg, errNum);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user