Commit 4a01b1c8 authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

parse_bin data initialized

parent ea8d99f6
......@@ -699,7 +699,7 @@ int driver_obs_obsdaq::parse_data_ascii(data_obs_vector* data, char* buf) {
//
/////////////////////////////////////////////////////////////////////////
double n[5];
double n[5] = {data->get_MD()};
uint32_t n32, num;
// Set data to missing
......@@ -771,7 +771,7 @@ int driver_obs_obsdaq::parse_data_bin(data_obs_vector* data, char* buf) {
//
/////////////////////////////////////////////////////////////////////////
double n[5];
double n[5] = {data->get_MD()};
uint32_t n32, num;
// Record length (is updated below)
......@@ -884,13 +884,11 @@ int driver_obs_obsdaq::parse_data_bin(data_obs_vector* data, char* buf) {
num = (uint32_t) 0x8000;
/*
if ((buf[1]&64) && supp_count >= 3 && supp_count <=4){
n32 = ( ( (buf[11 ]&127) + ((buf[0]&4 )<<5) ) <<8 )
+ ( ( (buf[12 ]&127) + ((buf[0]&2 )<<6) ) );
n[supp_count] = ((double) ((int32_t) ((n32 ^ num) - num))) / 8000.0;
}
*/
// Save the data
data->set_data(n);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment