@@ -394,7 +394,7 @@ class ADUCv2p1:
# Set the relative sensitivities of the coarse and fine output
def set_coarse_fine_ratio(self,ratio):
- tmp = (Gain)
+ tmp = (ratio)
buff = pack("<f",ratio)
dat = unpack("4B",buff)
return self.bus_pi.write_i2c_block_data(self._addr,140,[dat[0],dat[1],dat[2],dat[3]])