mirror of
https://github.com/xdsopl/robot36.git
synced 2026-01-09 09:40:01 +01:00
added some nice commented out RS_DEBUG macros
This commit is contained in:
parent
119813bc4a
commit
7c6689f126
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue