Skip to content
Snippets Groups Projects
Commit 87ed6f6d authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Update the daqd to read a channel list file/master file when the last line is...

Update the daqd to read a channel list file/master file when the last line is not newline terminated.
parent 0895a14d
No related branches found
No related tags found
1 merge request!170Cps recv to get dc diags
......@@ -278,11 +278,16 @@ daqd_c::configure_channels_files( )
for ( ;; )
{
unsigned long crc = 0;
int chanConfigCallback( char*, struct CHAN_PARAM*, void* user );
int testpoint = 0;
char buf[ 1024 ];
char* c = fgets( buf, 1024, mcf );
int chanConfigCallback( char*, struct CHAN_PARAM*, void* user );
int testpoint = 0;
char buf[ 1024 ];
if ( feof( mcf ) )
{
break;
}
char* c = fgets( buf, 1024, mcf );
if ( c == nullptr )
break;
if ( *buf == '#' )
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment