Skip to content
Snippets Groups Projects
Commit afab0296 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

unb2tr switch bug

parent be682374
Branches
No related tags found
No related merge requests found
Pipeline #50839 passed
......@@ -19,9 +19,9 @@ class i2c_array2(i2c_array):
if self.Nswitch>3: self.Nswitch=3;
self.RCU_Switch1=range(pars[0],pars[1]+1);
self.N=len(sw1)
self.RCUorder=range(self.N)
if len(sw2)>0: self.N*=len(sw2)
if len(sw3)>0: self.N*=len(sw3)
self.RCUorder=range(self.N)
self.I2Cmask=[0]*self.N
self.enablemask=[True]*self.N
print("enable mask",self.enablemask)
......@@ -30,7 +30,8 @@ class i2c_array2(i2c_array):
self.sw2=[x for x in sw2 for i in range(self.N//len(sw1)//len(sw2))]*len(sw1)
self.sw3=[x for x in sw3]*len(sw1)*len(sw2)
logging.debug(str(("Init",config['name'],' len=',self.N,'Nswitch=',self.Nswitch,self.sw1,self.sw2,self.sw3)))
self.I2Ccut=3;
# self.I2Ccut=3;
self.I2Ccut=config.get('I2Ccut',5);#pars[2];
def SetSwitch(self,RCUi):
#print("Set switch element",RCUi,'=',self.sw1[RCUi],self.sw2[RCUi],(self.sw3[RCUi] if len(self.sw3)<0 else 'x'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment