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
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class AD9912:
# Verify chip ID and presence # Verify chip ID and presence
prodid = self.read(AD9912_PRODIDH, 2) prodid = self.read(AD9912_PRODIDH, 2)
if (prodid != 0x1982) and (prodid != 0x1902): 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) self.core.delay(50. * us)
# HSTL power down, CMOS power down # HSTL power down, CMOS power down
self.write(AD9912_PWRCNTRL1, 0x80, 1) self.write(AD9912_PWRCNTRL1, 0x80, 1)