- Poldi data file writing with automatic update
- many fixes to TAS - Changed HM code for ILL PSD to account for Christoph's offset to positive.
This commit is contained in:
@@ -1590,7 +1590,7 @@
|
||||
int my_daq_save;
|
||||
uint maxbins, my_nbins, bins_in_buff;
|
||||
uint nxtbin_to_send, nbins_to_send, bytes_in_buff;
|
||||
uint bins_to_go;
|
||||
uint bins_to_go, lastbin;
|
||||
struct req_buff_struct my_rqst;
|
||||
struct rply_buff_struct my_rply;
|
||||
uchar *buff_pntr, *last_byte, *nxt;
|
||||
@@ -1710,9 +1710,13 @@
|
||||
nxt = (char *) my_pntr.base;
|
||||
while (nbins_to_send > 0) {
|
||||
/* Read some histogram data into buffer */
|
||||
lastbin = nxtbin_to_send + bins_in_buff;
|
||||
if(lastbin > my_nbins-1){
|
||||
lastbin = my_nbins-1;
|
||||
}
|
||||
bins_to_go = FS_read_hm (index, pkt_size,
|
||||
my_pntr.base, bins_in_buff,
|
||||
nxtbin_to_send, (my_fstbin + my_nbins - 1));
|
||||
nxtbin_to_send, lastbin);
|
||||
if (bins_to_go <= 0) {
|
||||
perror (StrJoin (buff, pkt_size,
|
||||
FS_name[index], "/FS_do_read: FS_read_hm error"));
|
||||
|
||||
Reference in New Issue
Block a user