From bc5e949bb47daa0c9422b49e26ecd0490f1424f1 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 22 Feb 2018 18:45:55 +0000 Subject: [PATCH] novogorny: fix gain register length --- artiq/coredevice/novogorny.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/novogorny.py b/artiq/coredevice/novogorny.py index 94e119973..f5d3911fd 100644 --- a/artiq/coredevice/novogorny.py +++ b/artiq/coredevice/novogorny.py @@ -100,7 +100,7 @@ class Novogorny: self.gains &= ~(0b11 << (channel*2)) self.gains |= gain << (channel*2) self.bus.set_config_mu(SPI_CONFIG | spi.SPI_END, - 2, self.div, SPI_CS_SR) + 16, self.div, SPI_CS_SR) self.bus.write(self.gains << 16) @kernel