Include enabled compile-time build options in the help header.
This commit is contained in:
parent
aa5885b6df
commit
888c939a75
27
dump1090.c
27
dump1090.c
|
@ -260,11 +260,28 @@ void snipMode(int level) {
|
||||||
// ================================ Main ====================================
|
// ================================ Main ====================================
|
||||||
//
|
//
|
||||||
void showHelp(void) {
|
void showHelp(void) {
|
||||||
printf(
|
|
||||||
"-----------------------------------------------------------------------------\n"
|
printf("-----------------------------------------------------------------------------\n");
|
||||||
"| dump1090 ModeS Receiver %45s |\n"
|
printf("| dump1090 ModeS Receiver %45s |\n", MODES_DUMP1090_VARIANT " " MODES_DUMP1090_VERSION);
|
||||||
"-----------------------------------------------------------------------------\n",
|
printf("| build options: %-58s |\n",
|
||||||
MODES_DUMP1090_VARIANT " " MODES_DUMP1090_VERSION);
|
""
|
||||||
|
#ifdef ENABLE_RTLSDR
|
||||||
|
"ENABLE_RTLSDR "
|
||||||
|
#endif
|
||||||
|
#ifdef ENABLE_BLADERF
|
||||||
|
"ENABLE_BLADERF "
|
||||||
|
#endif
|
||||||
|
#ifdef SC16Q11_TABLE_BITS
|
||||||
|
// This is a little silly, but that's how the preprocessor works..
|
||||||
|
#define _stringize(x) #x
|
||||||
|
#define stringize(x) _stringize(x)
|
||||||
|
"SC16Q11_TABLE_BITS=" stringize(SC16Q11_TABLE_BITS)
|
||||||
|
#undef stringize
|
||||||
|
#undef _stringize
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
printf("-----------------------------------------------------------------------------\n");
|
||||||
|
printf("\n");
|
||||||
|
|
||||||
sdrShowHelp();
|
sdrShowHelp();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue