mirror of
https://github.com/xdsopl/robot36.git
synced 2025-12-06 07:12:07 +01:00
stop further processing until vis is over
This commit is contained in:
parent
87b2bff52c
commit
08427fe508
|
|
@ -488,13 +488,13 @@ void decode(int samples) {
|
|||
even_hpos = 0;
|
||||
seperator_counter = 0;
|
||||
sync_counter = sync_length;
|
||||
if (++vis_counter >= vis_length) {
|
||||
calibration_progress = 0;
|
||||
calibration_countdown = 0;
|
||||
vis_counter = 0;
|
||||
for (int i = 0; i < bitmap_width * bitmap_height; ++i)
|
||||
pixel_buffer[i] = rgb(0, 0, 0);
|
||||
}
|
||||
if (++vis_counter < vis_length)
|
||||
continue;
|
||||
calibration_progress = 0;
|
||||
calibration_countdown = 0;
|
||||
vis_counter = 0;
|
||||
for (int i = 0; i < bitmap_width * bitmap_height; ++i)
|
||||
pixel_buffer[i] = rgb(0, 0, 0);
|
||||
}
|
||||
|
||||
int sync_level = cnt_active && cnt_quantized == 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue