|
@@ -352,10 +352,10 @@ class ADUCv2p1:
|
|
|
|
|
|
def set_input_gain(self, gain):
|
|
|
state = int(math.log2(gain))*16 + 8
|
|
|
- self.set_pga_state(self, state)
|
|
|
+ self.set_pga_state(state)
|
|
|
|
|
|
def get_input_gain(self):
|
|
|
- state = self.read_pga_state(self)
|
|
|
+ state = self.read_pga_state()
|
|
|
return (state-8)//16
|
|
|
|
|
|
# Set the feedback gain
|