- 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:
2014-05-22 10:45:48 +02:00
parent bf3ad3915b
commit 7d986b1a9f
2 changed files with 9 additions and 1 deletions

View File

@ -61,6 +61,14 @@ static int PoldiFold (pSConnection pCon, pSicsInterp pInter, void
nDet = dim->value.v.intArray[0];
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
*/