From 7c6689f126a763ee67c349211ecc73ef19001a07 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Wed, 11 Feb 2015 20:20:49 +0100 Subject: [PATCH] added some nice commented out RS_DEBUG macros --- app/src/main/rs/calibration_detector.rsh | 1 + app/src/main/rs/decoder.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/src/main/rs/calibration_detector.rsh b/app/src/main/rs/calibration_detector.rsh index dd6e9bf..3a769bd 100644 --- a/app/src/main/rs/calibration_detector.rsh +++ b/app/src/main/rs/calibration_detector.rsh @@ -77,6 +77,7 @@ static int calibration_detected(float dat_value, int cnt_quantized) } else if (bit_pos == 9 /* && 2 * abs(bit_counter) < bit_length */) { progress = 0; countdown = 0; + //RS_DEBUG(vis_code); return vis_code; } else { progress = 0; diff --git a/app/src/main/rs/decoder.rs b/app/src/main/rs/decoder.rs index f60177f..3a0303e 100644 --- a/app/src/main/rs/decoder.rs +++ b/app/src/main/rs/decoder.rs @@ -287,6 +287,7 @@ void decode(int samples) { if (automatic_mode_detection) { int detected_mode = calibration_detector(dat_value, cnt_quantized); if (detected_mode >= 0) { + //RS_DEBUG(detected_mode); reset_on_first_sync = 1; free_running = 0; reset_buffer(); @@ -294,6 +295,7 @@ void decode(int samples) { } int estimated_mode = scanline_estimator(sync_level); if (estimated_mode >= 0 && estimated_mode != *current_mode) { + //RS_DEBUG(estimated_mode); free_running = 1; reset_buffer(); switch_mode(estimated_mode);