Passthrough Sends

This commit is contained in:
Maximilien Rigaut 2021-10-18 23:44:14 +02:00
parent 0b33933162
commit 8ee61ff7a4
1 changed files with 7 additions and 1 deletions

View File

@ -422,6 +422,11 @@ class analogController(object):
################################
# MESSAGES SUBROUTINS
def passthroughSEND(self,name,send,*args,**kwargs):
"Send a message without any wait or lock"
dprint("Sending passthrough message ({})".format(send))
self.sendData(send)
def genericSEND(self,lock,send,fatal=True,*args,**kwargs):
"Generic send and join method, with all the logic on the controler side"
dprint("Acquiring {}".format(lock.lower()))
@ -542,7 +547,8 @@ class analogController(object):
they allow loading in a screen a preset stored from the other, in matrix mode.
"""
self.genericSEND("LOADMM","{screenF},{memory},{screenT},{ProgPrev},{filter},1GClrq".format(screenF=screenF,memory=memory,screenT=screenT,ProgPrev=ProgPrev,filter=filter),timeout=_TIMEOUT)
#self.genericSEND("LOADMM","{screenF},{memory},{screenT},{ProgPrev},{filter},1GClrq".format(screenF=screenF,memory=memory,screenT=screenT,ProgPrev=ProgPrev,filter=filter),timeout=_TIMEOUT)
self.passthroughSEND("LOADMM","{screenF},{memory},{screenT},{ProgPrev},{filter},1GClrq".format(screenF=screenF,memory=memory,screenT=screenT,ProgPrev=ProgPrev,filter=filter),timeout=_TIMEOUT)
def quickFrame(self,screen,action=None):