From 47501b582b51396cac7dc15a646e017f4e91e822 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 24 Jul 2012 23:10:01 +0200 Subject: Read output_mode and adc_resolution from frame header --- src/ufodecode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ufodecode.c') diff --git a/src/ufodecode.c b/src/ufodecode.c index 43085d7..68b0da7 100644 --- a/src/ufodecode.c +++ b/src/ufodecode.c @@ -561,8 +561,10 @@ size_t ufo_decoder_decode_frame(UfoDecoder *decoder, pos++; meta->frame_number = raw[pos++] & 0x1FFFFFF; - CHECK_VALUE(raw[pos] >> 24, 0x50); + CHECK_VALUE(raw[pos] >> 28, 0x5); meta->time_stamp = raw[pos++] & 0xFFFFFF; + meta->output_mode = (raw[pos] >> 24) & 0x3; + meta->adc_resolution = (raw[pos] >> 26) & 0x3 break; default: -- cgit v1.2.3