- Added Sycamore protocol and command context to SICS
- Added sinfo to SICS - Added driver for TCP/IP Astrium velocity selector - Added driver for TCP/IP Astrium chopper controller SKIPPED: psi/amor2t.c psi/amorstat.c psi/dornier2.c psi/ecb.c psi/el734hp.c psi/fowrite.c psi/libpsi.a psi/make_gen psi/nextrics.c psi/pardef.c psi/pimotor.c psi/pipiezo.c psi/polterwrite.c psi/psi.c psi/scontroller.c psi/serial.c psi/tasinit.c psi/tasscan.c psi/tcpdocho.c psi/tcpdornier.c psi/tricssupport.c psi/velodornier.c
This commit is contained in:
13
selvar.c
13
selvar.c
@ -474,7 +474,8 @@
|
||||
return 1;
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
static int WaveLengthCallBack(int iEvent, void *pEvent, void *pUser)
|
||||
static int WaveLengthCallBack(int iEvent, void *pEvent, void *pUser,
|
||||
commandContext cc)
|
||||
{
|
||||
SConnection *pCon = NULL;
|
||||
pSelVar self = NULL;
|
||||
@ -488,7 +489,7 @@
|
||||
|
||||
fVal = GetSelValue(self,pCon);
|
||||
sprintf(pBueffel,"%s.value = %f", self->name, fVal);
|
||||
SCWrite(pCon,pBueffel,eValue);
|
||||
SCWriteInContext(pCon,pBueffel,eValue,cc);
|
||||
return 1;
|
||||
}
|
||||
/*--------------------------------------------------------------------------
|
||||
@ -520,7 +521,8 @@
|
||||
strtolower(argv[1]);
|
||||
if(strcmp(argv[1],"interest") == 0)
|
||||
{
|
||||
lID = RegisterCallback(self->pCall, WLCHANGE, WaveLengthCallBack,
|
||||
lID = RegisterCallback(self->pCall, SCGetContext(pCon),
|
||||
WLCHANGE, WaveLengthCallBack,
|
||||
pCon, NULL);
|
||||
SCRegister(pCon,pSics, self->pCall,lID);
|
||||
SCSendOK(pCon);
|
||||
@ -589,8 +591,9 @@
|
||||
strtolower(argv[1]);
|
||||
if(strcmp(argv[1],"interest") == 0)
|
||||
{
|
||||
lID = RegisterCallback(self->pCall, WLCHANGE, WaveLengthCallBack,
|
||||
pCon, NULL);
|
||||
lID = RegisterCallback(self->pCall, SCGetContext(pCon),
|
||||
WLCHANGE, WaveLengthCallBack,
|
||||
pCon, NULL);
|
||||
SCRegister(pCon,pSics, self->pCall,lID);
|
||||
SCSendOK(pCon);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user