jarjonam 5 năm trước cách đây
mục cha
commit
d471e82609
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      pi/ADUCv2p1.py

+ 2 - 2
pi/ADUCv2p1.py

@@ -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