From 5343b3d45adf86fe3aaa14c6ac95f5babab7be94 Mon Sep 17 00:00:00 2001 From: linuswck Date: Fri, 8 Nov 2024 12:54:08 +0800 Subject: [PATCH] pyfastservo adc: print 100 times to check test pattern --- fast-servo/pyfastservo/adc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fast-servo/pyfastservo/adc.py b/fast-servo/pyfastservo/adc.py index 04fab50..69a00b6 100644 --- a/fast-servo/pyfastservo/adc.py +++ b/fast-servo/pyfastservo/adc.py @@ -155,7 +155,10 @@ def configure_ltc2195(): # Performing Word Align perform_bitslip() find_edge() - print_adc_channels() + + # Printing it once is not enough to check whether the alignment is correct. + for i in range(100): + print_adc_channels() main_adc_test_mode(spi, False) verify_adc_registers(spi, {0x02: 0x11}) # Verify test mode is off