2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 19:28:26 +08:00

ad9912: exception with string is supported by nac3

This commit is contained in:
Sebastien Bourdeauducq 2022-02-25 18:26:01 +08:00
parent e3a2825ae7
commit 464818da34

View File

@ -112,7 +112,7 @@ class AD9912:
# Verify chip ID and presence
prodid = self.read(AD9912_PRODIDH, 2)
if (prodid != 0x1982) and (prodid != 0x1902):
raise ValueError() # NAC3TODO("Urukul AD9912 product id mismatch")
raise ValueError("Urukul AD9912 product id mismatch")
self.core.delay(50. * us)
# HSTL power down, CMOS power down
self.write(AD9912_PWRCNTRL1, 0x80, 1)