From 1b673a1adba0c3953749e9e74aa13c1734347034 Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Tue, 20 Aug 2024 13:54:07 +0800 Subject: [PATCH] switch dac output sequence --- fast-servo/pyfastservo/dac.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fast-servo/pyfastservo/dac.py b/fast-servo/pyfastservo/dac.py index 4de7240..9a376c7 100644 --- a/fast-servo/pyfastservo/dac.py +++ b/fast-servo/pyfastservo/dac.py @@ -127,13 +127,13 @@ def configure_ad9117(): configure_dac(spi) dac_self_calibration(spi) + # Enable DAC outputs + spi_write(spi, 0x01, spi_read(spi, 0x01) & ~((1 << 4) | (1 << 3))) + power_down(0, False) power_down(1, False) manual_override(True) - # Enable DAC outputs - spi_write(spi, 0x01, spi_read(spi, 0x01) & ~((1 << 4) | (1 << 3))) - print("AD9117 configuration completed successfully") return True