瀏覽代碼

Allow programtic access to the local DEBUG setting

Zachary Kotlarek 9 年之前
父節點
當前提交
913e15205a
共有 1 個文件被更改,包括 5 次插入 和 0 次删除
  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;