- 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:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user