From c0db7e9bed14ecfe53ffe701fd4017aa0428bced Mon Sep 17 00:00:00 2001 From: Morten Rolland Date: Fri, 27 Aug 1999 17:48:47 +0000 Subject: [PATCH] New debugging format DEBUG_FORMAT_CONFIDENCE for debugging fsk_demod.c --- include/ifax/modules/debug.h | 1 + modules/debug.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/ifax/modules/debug.h b/include/ifax/modules/debug.h index 231314c..4437f1e 100644 --- a/include/ifax/modules/debug.h +++ b/include/ifax/modules/debug.h @@ -11,3 +11,4 @@ #define DEBUG_FORMAT_SIGNED16BIT 0 #define DEBUG_FORMAT_16BIT_HEX 1 #define DEBUG_FORMAT_PACKED_BINARY 2 +#define DEBUG_FORMAT_CONFIDENCE 3 diff --git a/modules/debug.c b/modules/debug.c index 69d7572..ba9b188 100644 --- a/modules/debug.c +++ b/modules/debug.c @@ -109,6 +109,10 @@ mask <<= 1; } break; + case DEBUG_FORMAT_CONFIDENCE: + fprintf(file,"%d\n",u8[0]?u8[1]:-u8[1]); + u8 += 2; + break; default: fprintf(stderr,"Bad DEBUG_FORMAT_*\n"); exit(1);