- Fixed a bug in poldifold which caused a crash whne the HM data was not initialized
- The astrium chopper controller requires floats with a . and retuns them with a , . Accomodated for this quirk
This commit is contained in:
@ -93,7 +93,7 @@ static void encodeXML(Ascon *a)
|
|||||||
if(equal != NULL){
|
if(equal != NULL){
|
||||||
*equal = '\0';
|
*equal = '\0';
|
||||||
equal++;
|
equal++;
|
||||||
ptToKomma(equal);
|
/* ptToKomma(equal);*/
|
||||||
mxmlElementSetAttr(param,token,equal);
|
mxmlElementSetAttr(param,token,equal);
|
||||||
} else {
|
} else {
|
||||||
mxmlElementSetAttr(param,token,NULL);
|
mxmlElementSetAttr(param,token,NULL);
|
||||||
|
@ -61,6 +61,14 @@ static int PoldiFold (pSConnection pCon, pSicsInterp pInter, void
|
|||||||
nDet = dim->value.v.intArray[0];
|
nDet = dim->value.v.intArray[0];
|
||||||
nSourceTof = dim->value.v.intArray[1];
|
nSourceTof = dim->value.v.intArray[1];
|
||||||
|
|
||||||
|
/*
|
||||||
|
check for badly initailized data array
|
||||||
|
*/
|
||||||
|
if(source->value.arrayLength < nDet*nSourceTof){
|
||||||
|
SCWrite(pCon,"ERROR: hm data not initialised to correct length!", eError);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ensure enough space to write
|
ensure enough space to write
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user