New debugging format DEBUG_FORMAT_CONFIDENCE for debugging fsk_demod.c

This commit is contained in:
Morten Rolland 1999-08-27 17:48:47 +00:00
parent ada97c4655
commit c0db7e9bed
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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);