- Fixed text writing in poldiwrite
This commit is contained in:
@ -193,7 +193,7 @@ static int decodeRS(pEL737hp pPriv, int RS){
|
|||||||
/*-----------------------------------------------------------------*/
|
/*-----------------------------------------------------------------*/
|
||||||
static int updateMonitors(struct __COUNTER *self){
|
static int updateMonitors(struct __COUNTER *self){
|
||||||
int status;
|
int status;
|
||||||
int m1,m2,m3,m4,m5,m6,m7,m8;
|
long m1,m2,m3,m4,m5,m6,m7,m8;
|
||||||
float fTime;
|
float fTime;
|
||||||
pEL737hp pPriv = NULL;
|
pEL737hp pPriv = NULL;
|
||||||
char reply[132];
|
char reply[132];
|
||||||
@ -207,13 +207,13 @@ static int updateMonitors(struct __COUNTER *self){
|
|||||||
/*
|
/*
|
||||||
There are two forms of RA replys: new form with 8 monitors
|
There are two forms of RA replys: new form with 8 monitors
|
||||||
*/
|
*/
|
||||||
status = sscanf(reply,"%f %d %d %d %d %d %d %d %d",
|
status = sscanf(reply,"%f %ld %ld %ld %ld %ld %ld %ld %ld",
|
||||||
&fTime,&m1,&m2,&m3,&m4,&m5,&m6,&m7,&m8);
|
&fTime,&m1,&m2,&m3,&m4,&m5,&m6,&m7,&m8);
|
||||||
if(status != 9){
|
if(status != 9){
|
||||||
/*
|
/*
|
||||||
old form with 4 monitors
|
old form with 4 monitors
|
||||||
*/
|
*/
|
||||||
status = sscanf(reply,"%d %d %d %d %f",&m1,&m2,&m3,&m4,&fTime);
|
status = sscanf(reply,"%ld %ld %ld %ld %f",&m1,&m2,&m3,&m4,&fTime);
|
||||||
if(status != 5){
|
if(status != 5){
|
||||||
pPriv->errorCode = BADREPLY;
|
pPriv->errorCode = BADREPLY;
|
||||||
setBadReply(pPriv,reply);
|
setBadReply(pPriv,reply);
|
||||||
|
@ -223,7 +223,7 @@ static void PoldiStart(pPolterdi self, SConnection *pCon)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* create a Nexus file */
|
/* create a Nexus file */
|
||||||
NXopen(self->pFile,NXACC_CREATE,&hfil);
|
NXopen(self->pFile,NXACC_CREATE5,&hfil);
|
||||||
if(!hfil)
|
if(!hfil)
|
||||||
{
|
{
|
||||||
SCWrite(pCon,"ERROR: cannot create data file ",eError);
|
SCWrite(pCon,"ERROR: cannot create data file ",eError);
|
||||||
|
Reference in New Issue
Block a user