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