added some nice commented out RS_DEBUG macros

This commit is contained in:
Ahmet Inan 2015-02-11 20:20:49 +01:00
parent 119813bc4a
commit 7c6689f126
2 changed files with 3 additions and 0 deletions

View file

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

View file

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