Multiple bug fixes
- Arrayutil was not summing correctly - Added interest to motorsec in order to support old status clients - core dump because of bad free in devser - fixed transferring of count time in multicounter - added stack debugging to sllinux_def - Modifications to tasdrive to wait for finish of monochromator properly
This commit is contained in:
15
arrayutil.c
15
arrayutil.c
@ -36,11 +36,18 @@ long sumWindow(int *data, int xstart, int xend, int xlength,
|
||||
}
|
||||
|
||||
|
||||
for(j = ystart; j < yend; j++){
|
||||
row = data + j*xlength;
|
||||
for(i = xstart; i < xend; i++){
|
||||
result += row[i];
|
||||
/* for(j = ystart; j < yend; j++){ */
|
||||
/* row = data + j*xlength; */
|
||||
/* for(i = xstart; i < xend; i++){ */
|
||||
/* result += row[i]; */
|
||||
/* } */
|
||||
/* } */
|
||||
for(i = xstart; i < xend; i++){
|
||||
row = data + i*ylength;
|
||||
for(j = ystart; j < yend; j++){
|
||||
result += row[j];
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user