SICS-405: Reverted fix of 1/6/2010 to remove sleep() function call.
This commit is contained in:
@@ -177,7 +177,7 @@ int RFAmpReading (Ascon *a)
|
||||
data->transactInProg = txCheckReply;
|
||||
|
||||
//Jing: add delay to wait for ramping complete
|
||||
sleep(data->timeout);
|
||||
/* ffr: Reverted SICS-405 sleep(data->timeout); */
|
||||
|
||||
DynStringClear(a->wrBuffer);
|
||||
DynStringConcatBytes(a->wrBuffer, data->statusCmd, LCMDLEN);
|
||||
@@ -245,6 +245,7 @@ int RFAmpReading (Ascon *a)
|
||||
tmpSwitchs = (unsigned char)data->rfCmd[8];
|
||||
|
||||
// TODO SICS-405 ffr Removed check because the read values don't immediately match the set values
|
||||
/*
|
||||
if( (abs(atoi(curr) - atoi(tmpCurr)) > data->currTol) ||
|
||||
(atoi(freq) != atoi(tmpFreq)) ||
|
||||
((switches & 0x0F) != (tmpSwitchs & 0x0F)) ) {
|
||||
@@ -254,9 +255,10 @@ int RFAmpReading (Ascon *a)
|
||||
} else {
|
||||
DynStringReplace(a->rdBuffer, "OK", 0);
|
||||
}
|
||||
*/
|
||||
|
||||
/* ffr Just report OK until we have a proper fix */
|
||||
//DynStringReplace(a->rdBuffer, "OK", 0);
|
||||
DynStringReplace(a->rdBuffer, "OK", 0);
|
||||
|
||||
a->state = AsconReadDone;
|
||||
data->transactInProg = txNormalRead;
|
||||
|
||||
Reference in New Issue
Block a user