Procházet zdrojové kódy

fix: 2/2 hang console.py by heavy-flashing-by-hand xx.next return's None

micha před 2 roky
rodič
revize
2ea429eb25
3 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 2 2
      _LibreLightDesk.py
  2. 2 2
      _console.py
  3. 1 1
      lib/zchat.py

+ 2 - 2
_LibreLightDesk.py

@@ -523,7 +523,7 @@ def reshape_preset(data ,value=None,xfade=0,flash=0,ptfade=0):
     out = []
     delay=0
     for row in data:
-        cprint("reshape_preset in:",row)
+        #cprint("reshape_preset in:",row)
         line = {}
         line["DELAY"]=delay
         if type(value) is float:
@@ -571,7 +571,7 @@ def reshape_preset(data ,value=None,xfade=0,flash=0,ptfade=0):
         
         if 0:
             cprint("reshape_preset j",line,color="red") 
-        cprint("reshape_preset out:",line)
+        #cprint("reshape_preset out:",line)
         out.append(line)
         if DELAY._is():
             delay+=DELAY.val()/100 #0.02

+ 2 - 2
_console.py

@@ -568,7 +568,7 @@ class DMXCH(object):
         #print("init fade",self)
 
     def fx(self,xtype="sinus",size=40,speed=40,invert=0,width=100,start=0,offset=0,base="", clock=0,master=None):
-        print([self,xtype,size,speed,start,offset,base, clock])
+        #print("DMXCH.fx",[self,xtype,size,speed,start,offset,base, clock])
         self._fx[0] = self._fx[1]
         if str(xtype).lower() == "off":
             fx_value = self._fx_value
@@ -583,7 +583,7 @@ class DMXCH(object):
             self._fx[1].exec_id(self._exec_id)
 
         self.next(clock)
-        print("init fx",self)
+        #print("init fx",self)
 
     def flash(self,target,ftime=0,clock=0,delay=0):
         if str(target).lower() == "off":

+ 1 - 1
lib/zchat.py

@@ -188,7 +188,7 @@ class Client():
     def send(self,nachricht):
         try:
             #print(sys.getsizeof(msg),len(msg))
-            print("send",nachricht)
+            if "-dbg" in sys.argv:print("send",nachricht)
             if sys.getsizeof(nachricht):
                 nachricht=zlib.compress(nachricht)
             #nachricht = bytes(nachricht,"utf-8")