Skip to content
Snippets Groups Projects
Commit 68f4c5bc authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

Increase I2C device disable count

parent da7cf526
Branches
Tags
No related merge requests found
Pipeline #32164 passed
......@@ -95,7 +95,7 @@ class i2c_dev(hwdev):
self.I2Cmask=[0]
self.I2Cmaskid=config.get('maskid',None)
if self.I2Cmaskid is None: logging.warn(config['name']+" I2C mask not found!")
self.I2Ccut=3;
self.I2Ccut=10;
def OPCUASetVariable(self,varid,var1,data,mask):
logging.info(str(("Set Var",var1['name'],data[:32],mask)))
......@@ -127,7 +127,9 @@ class i2c_dev(hwdev):
def OPCUAReadVariable(self,varid,var1,mask):
if len(mask)==0: mask=[True];
logging.info(str(("Read Var",var1['name'],"Mask=",mask)))
if not(var1.get('devreg')): return []
if not(var1.get('devreg')):
logging.warning("device not found!")
return []
#data=self.GetVarValueAll(var1)
#else:
oldmask=self.I2Cmask.copy()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment