forked from M-Labs/artiq
1
0
Fork 0

ad53xx: ldac may be none

This commit is contained in:
Robert Jördens 2016-03-02 15:50:02 +01:00
parent f5dee455f5
commit 9969cd85de
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ class AD53xx:
chip_select=0, write_div=4, read_div=6):
self.core = dmgr.get("core")
self.bus = dmgr.get(spi_bus)
# if ldac is not None:
ldac = dmgr.get(ldac)
if ldac is not None:
ldac = dmgr.get(ldac)
self.ldac = ldac
self.chip_select = chip_select
self.write_div = write_div