- Reworked the connection object and the IO system
- Reworked the support for TRICS - Added a second generation motor
This commit is contained in:
10
nxupdate.c
10
nxupdate.c
@ -46,8 +46,7 @@ static int UpdateTask(void *pData){
|
||||
}
|
||||
}
|
||||
/*--------------------------------------------------------------------*/
|
||||
static int CountCallback(int iEvent, void *pEventData, void *pUser,
|
||||
commandContext cc){
|
||||
static int CountCallback(int iEvent, void *pEventData, void *pUser){
|
||||
pNXupdate self = NULL;
|
||||
SConnection *pCon = NULL;
|
||||
|
||||
@ -258,7 +257,6 @@ int UpdateFactory(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
char pBueffel[256];
|
||||
pNXupdate self = NULL;
|
||||
CommandList *pCom = NULL;
|
||||
commandContext comCon;
|
||||
|
||||
if(argc < 3){
|
||||
SCWrite(pCon,"ERROR: insuffcient number of argument to UpdateFactory",
|
||||
@ -311,11 +309,9 @@ int UpdateFactory(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
/*
|
||||
register callbacks
|
||||
*/
|
||||
comCon.transID = 0;
|
||||
strncpy(comCon.deviceID,"internal",SCDEVIDLEN);
|
||||
RegisterCallback(pCall,comCon,COUNTSTART,CountCallback,
|
||||
RegisterCallback(pCall,COUNTSTART,CountCallback,
|
||||
self,NULL);
|
||||
RegisterCallback(pCall,comCon,COUNTEND,CountCallback,
|
||||
RegisterCallback(pCall,COUNTEND,CountCallback,
|
||||
self,NULL);
|
||||
|
||||
AddCommand(pSics,argv[1],UpdateAction,KillUpdate,self);
|
||||
|
Reference in New Issue
Block a user