Permalink
Browse files

Fixed the incorrect use of the enabled channels mask.

  • Loading branch information...
jawi committed Aug 14, 2012
1 parent 442a7b8 commit ef7871a42cf825e6259ac4dac9a690a11b7a5c71
@@ -105,8 +105,9 @@ public AcquisitionResult call() throws IOException
}
final long absLength = timestamps[idx - 1];
+ final int enabledChannels = ( 1 << channels ) - 1;
- return new CapturedData( values, timestamps, Ols.NOT_AVAILABLE, rate, channels, channels, absLength );
+ return new CapturedData( values, timestamps, Ols.NOT_AVAILABLE, rate, channels, enabledChannels, absLength );
}
catch ( IOException exception )
{

0 comments on commit ef7871a

Please sign in to comment.