- Introduced a new trace facility
- Fixed performance problems in many protocol drivers.
This commit is contained in:
8
spss7.c
8
spss7.c
@@ -164,7 +164,7 @@ static char *S7WriteHandler(void *actionData, char *reply, int comerror)
|
||||
static void UpdateSPSDataBase(pS7Action self)
|
||||
{
|
||||
char *pPtr;
|
||||
char name[15], unit[9], description[25], reference[11], error[50];
|
||||
char name[15], unit[9], description[25], reference[11], error[50], alarms[10];
|
||||
unsigned char type, alarm;
|
||||
unsigned short val;
|
||||
int ival;
|
||||
@@ -220,6 +220,8 @@ static void UpdateSPSDataBase(pS7Action self)
|
||||
snprintf(error,50,"Alarm %d on par",alarm);
|
||||
SetHdbProperty(node,"geterror", error);
|
||||
}
|
||||
snprintf(alarms,sizeof(alarms),"%d",alarm);
|
||||
SetHdbProperty(node,"alarm", alarms);
|
||||
}
|
||||
}
|
||||
/*------------------------------------------------------------------
|
||||
@@ -308,7 +310,7 @@ static hdbCallbackReturn S7WriteCallback(pHdb currentNode,
|
||||
static void InitializeSPSDataBase(pS7Action self, pHdb parent)
|
||||
{
|
||||
char *pPtr;
|
||||
char name[15], unit[9], description[25], reference[11], num[11], error[50];
|
||||
char name[15], unit[9], description[25], reference[11], num[11], error[50], alarms[10];
|
||||
unsigned char type, alarm;
|
||||
short val;
|
||||
int ival;
|
||||
@@ -364,6 +366,8 @@ static void InitializeSPSDataBase(pS7Action self, pHdb parent)
|
||||
snprintf(error,10,"Alarm %d on par",alarm);
|
||||
SetHdbProperty(node,"geterror", error);
|
||||
}
|
||||
snprintf(alarms,sizeof(alarms),"%d",alarm);
|
||||
SetHdbProperty(node,"alarm", alarms);
|
||||
SetHdbProperty(node,"unit", unit);
|
||||
SetHdbProperty(node,"description", description);
|
||||
SetHdbProperty(node,"reference", reference);
|
||||
|
||||
Reference in New Issue
Block a user