Ver Fonte

Allow programtic access to the local DEBUG setting

Zachary Kotlarek há 9 anos atrás
pai
commit
913e15205a
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      dmx/DMX.pm

+ 5 - 0
dmx/DMX.pm

@@ -329,5 +329,10 @@ sub say($) {
 	  or die('Unable to write command to socket: SPEAK: ' . $str . ": ${!}\n");
 }
 
+# Allow programatic debug control
+sub debug($) {
+	($DEBUG) = @_;
+}
+
 # Always return true
 1;