- general float format for remob
This commit is contained in:
4
remob.c
4
remob.c
@ -545,7 +545,7 @@ static long RemobRun(void *self, SConnection * pCon, float fNew)
|
|||||||
RemConnect(remserver, 0); /* connect spy for listexe interest */
|
RemConnect(remserver, 0); /* connect spy for listexe interest */
|
||||||
|
|
||||||
remob->status = HWIdle;
|
remob->status = HWIdle;
|
||||||
snprintf(buf, sizeof(buf), "run %s %f", remob->name, fNew);
|
snprintf(buf, sizeof(buf), "run %s %g", remob->name, fNew);
|
||||||
iRet =
|
iRet =
|
||||||
RemTransact(remserver, nChan, pCon, buf, "!ERROR: somebody else",
|
RemTransact(remserver, nChan, pCon, buf, "!ERROR: somebody else",
|
||||||
"!ERROR: cannot", ">", NULL);
|
"!ERROR: cannot", ">", NULL);
|
||||||
@ -610,7 +610,7 @@ static int InterestCallback(int iEvent, void *pEvent, void *pUser)
|
|||||||
assert(psCall);
|
assert(psCall);
|
||||||
assert(pInfo);
|
assert(pInfo);
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%s.position = %f ", pInfo->pName,
|
snprintf(buf, sizeof(buf), "%s.position = %g ", pInfo->pName,
|
||||||
psCall->fVal);
|
psCall->fVal);
|
||||||
SCWrite(pInfo->pCon, buf, eValue);
|
SCWrite(pInfo->pCon, buf, eValue);
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user