Expose the MultiChan Action (Wrapper) function to allow device drivers to pass unknown actions through to this and the underlying RS232 controller.
r1560 | dcl | 2007-03-01 09:05:29 +1100 (Thu, 01 Mar 2007) | 2 lines
This commit is contained in:
@@ -267,7 +267,7 @@ int MultiChanSetTimeout(pMultiChan unit, int timeout)
|
||||
return old_timeout;
|
||||
}
|
||||
|
||||
static int MC_Action(SConnection *pCon, SicsInterp *pSics,
|
||||
int MultiChanAction(SConnection *pCon, SicsInterp *pSics,
|
||||
void *pData, int argc, char *argv[])
|
||||
{
|
||||
pMultiChanController self = (pMultiChanController) pData;
|
||||
@@ -377,7 +377,7 @@ int MultiChanFactory(SConnection *pCon, SicsInterp *pSics,
|
||||
/*
|
||||
create the command
|
||||
*/
|
||||
iRet = AddCommand(pSics, argv[1], MC_Action, MC_Kill, pNew);
|
||||
iRet = AddCommand(pSics, argv[1], MultiChanAction, MC_Kill, pNew);
|
||||
if(!iRet)
|
||||
{
|
||||
sprintf(pError,"ERROR: duplicate command %s not created", argv[1]);
|
||||
|
||||
Reference in New Issue
Block a user