- Added some hipadab array math
- Added missing cnvrt files, stolen from Markus - Debugged the new sinqhttpopt driver for SINQ HTTP HM - Debugged the driver for the new S7 Siemens SPS - Added handling of hexadecimal terminators to ascon.c - Increased the write buffer size in asynnet again - Fixed a core dump in lld.c - Added writing of second gen HM to nxscript.c - Added doubletime command to SICS - Fixed a core dump issue in sicshdbadapter.c on dimension changes - Modified sicsobj to look for lower case keys too SKIPPED: psi/cnvrt.c psi/cnvrt.h psi/el734hp.c psi/make_gen psi/sinqhttpopt.c psi/sinqhttpprot.c psi/spss7.c psi/swmotor.c
This commit is contained in:
21
ascon.c
21
ascon.c
@ -495,6 +495,26 @@ int AsconStdHandler(Ascon * a)
|
||||
return AsconBaseHandler(a);
|
||||
}
|
||||
|
||||
/**
|
||||
* Treat hex strings as terminators right. Note that this
|
||||
* is limited to single character terminators.
|
||||
*/
|
||||
static void AsconCheckTerminators(Ascon *a)
|
||||
{
|
||||
int c;
|
||||
|
||||
if(a->sendTerminator != NULL && strstr(a->sendTerminator,"0x") != NULL){
|
||||
sscanf(a->sendTerminator,"%x",&c);
|
||||
a->sendTerminator[0] = (char)c;
|
||||
a->sendTerminator[1] = '\0';
|
||||
}
|
||||
if(a->replyTerminator != NULL && strstr(a->replyTerminator,"0x") != NULL){
|
||||
sscanf(a->replyTerminator,"%x",&c);
|
||||
a->replyTerminator[0] = (char)c;
|
||||
a->replyTerminator[1] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
int AsconInterpreteArgs(int argc, char *argv[],
|
||||
int parc, char *parn[], char *pars[])
|
||||
{
|
||||
@ -574,6 +594,7 @@ int AsconStdInit(Ascon *a, SConnection *con, int argc, char *argv[])
|
||||
} else {
|
||||
a->separator = NULL;
|
||||
}
|
||||
AsconCheckTerminators(a);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user