From 51c8b755d2459d99ec341bac90eecb557671cb53 Mon Sep 17 00:00:00 2001 From: linuswck Date: Fri, 8 Nov 2024 15:32:56 +0800 Subject: [PATCH] pyfastservo dac: hard_reset -> soft_reset --- fast-servo/pyfastservo/dac.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fast-servo/pyfastservo/dac.py b/fast-servo/pyfastservo/dac.py index e92433d..d1299f9 100644 --- a/fast-servo/pyfastservo/dac.py +++ b/fast-servo/pyfastservo/dac.py @@ -45,7 +45,7 @@ def spi_read(spi, address): rx_buffer = spi.xfer2([0x80 | address, 0x00]) return rx_buffer[1] -def hard_reset(spi): +def soft_reset(spi): spi_write(spi, 0x00, 0x10) # Software reset spi_write(spi, 0x00, 0x00) # Release software reset spi_read(spi, 0x00) # Read reset address (necessary for reset to take effect) @@ -132,7 +132,7 @@ def configure_ad9117(): spi.cshigh = False try: - hard_reset(spi) + soft_reset(spi) if not check_version(spi): print("Unrecognized DAC version") return False