Fix --debug option.

It only showed messages processed after the phase correction, because of
a programming error.
This commit is contained in:
antirez 2014-09-19 23:14:30 +02:00
parent 53cca39ed5
commit aecc86fa00

View File

@ -1493,7 +1493,7 @@ good_preamble:
} }
/* Output debug mode info if needed. */ /* Output debug mode info if needed. */
if (use_correction) { if (use_correction == 0) {
if (Modes.debug & MODES_DEBUG_DEMOD) if (Modes.debug & MODES_DEBUG_DEMOD)
dumpRawMessage("Demodulated with 0 errors", msg, m, j); dumpRawMessage("Demodulated with 0 errors", msg, m, j);
else if (Modes.debug & MODES_DEBUG_BADCRC && else if (Modes.debug & MODES_DEBUG_BADCRC &&