From fa4f1fdbee50522330387bead1b4fd875aef1d91 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 26 Jul 2012 10:00:32 +0200 Subject: Output version number if wrong --- src/ufodecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ufodecode.c b/src/ufodecode.c index 072e409..58d2a68 100644 --- a/src/ufodecode.c +++ b/src/ufodecode.c @@ -579,7 +579,7 @@ size_t ufo_decoder_decode_frame(UfoDecoder *decoder, meta->adc_resolution = (raw[pos] >> 26) & 0x3; pos++; - if ((meta->output_mode != IPECAMERA_MODE_4_CHAN_IO)&&(meta->output_mode != IPECAMERA_MODE_16_CHAN_IO)) { + if ((meta->output_mode != IPECAMERA_MODE_4_CHAN_IO) && (meta->output_mode != IPECAMERA_MODE_16_CHAN_IO)) { #ifdef DEBUG fprintf(stderr, "Output mode 0x%lx is not supported\n", meta->output_mode); #endif @@ -588,7 +588,7 @@ size_t ufo_decoder_decode_frame(UfoDecoder *decoder, break; default: - fprintf(stderr, "Unsupported data format detected\n"); + fprintf(stderr, "Unsupported data format version %i detected\n", version); return 0; } -- cgit v1.2.3