update timeout to 120 seconds

r1616 | dcl | 2007-03-08 18:24:11 +1100 (Thu, 08 Mar 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-03-08 18:24:11 +11:00
parent e284d5f09b
commit 6000e99080

View File

@@ -368,7 +368,7 @@ static int PLC_Action(SConnection *pCon, SicsInterp *pSics,
return OKOK;
}
else if (argc == 2) {
if (strcmp(argv[1], "list") == 0) {
if (strcasecmp(argv[1], "list") == 0) {
PLC_Print(pCon, pSics, pData, argv[0], "key");
PLC_Print(pCon, pSics, pData, argv[0], "secondary");
PLC_Print(pCon, pSics, pData, argv[0], "tertiary");
@@ -386,8 +386,9 @@ static int PLC_Action(SConnection *pCon, SicsInterp *pSics,
if (PLC_Print(pCon, pSics, pData, argv[0], argv[1]))
return OKOK;
}
/* TODO: handle private stuff */
return MultiChanAction(pCon, pSics, self->mcc, argc, argv);
snprintf(line, 132, "%s does not understand %s", argv[0], argv[1]);
SCWrite(pCon, line, eError);
return 0;
}
static pSafetyPLCController PLC_Create(const char* pName, int port)
@@ -417,7 +418,7 @@ static int PLC_Init(pSafetyPLCController self)
1000, 100,
MyTimerCallback,
self);
self->timeout=30000;
self->timeout=120000; /* huge */
return 1;
}