瀏覽代碼

Output version number if wrong

Matthias Vogelgesang 11 年之前
父節點
當前提交
fa4f1fdbee
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/ufodecode.c

+ 2 - 2
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;
     }