summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/vbiparse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/vbiparse.cpp')
-rw-r--r--src/lib/util/vbiparse.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/util/vbiparse.cpp b/src/lib/util/vbiparse.cpp
index dc9c22f9176..bfd145dd99f 100644
--- a/src/lib/util/vbiparse.cpp
+++ b/src/lib/util/vbiparse.cpp
@@ -204,7 +204,7 @@ bool vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshi
break;
/* this is useful for debugging issues with white flag detection */
- if (IS_ENABLED(PRINTF_WHITE_FLAG))
+ if (PRINTF_WHITE_FLAG)
{
printf("Histo: min=%02X max=%02X\n", minval, maxval);
for (x = 0; x < 256; x++)
@@ -214,7 +214,7 @@ bool vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshi
/* ignore if we have no dynamic range */
if (maxval - minval < 10)
{
- if (IS_ENABLED(PRINTF_WHITE_FLAG))
+ if (PRINTF_WHITE_FLAG)
printf("White flag NOT detected; threshold too low\n");
return false;
}
@@ -242,7 +242,7 @@ bool vbi_parse_white_flag(const uint16_t *source, int sourcewidth, int sourceshi
/* return true if it is above the 90% mark */
result = (peakval > minval + 9 * (maxval - minval) / 10);
- if (IS_ENABLED(PRINTF_WHITE_FLAG))
+ if (PRINTF_WHITE_FLAG)
printf("White flag %s: peak=%02X thresh=%02X\n", result ? "detected" : "NOT detected", peakval, minval + 9 * (maxval - minval) / 10);
return result;