Browse Source

Allow programtic access to the local DEBUG setting

Zachary Kotlarek 9 năm trước cách đây
mục cha
commit
913e15205a
1 tập tin đã thay đổi với 5 bổ sung và 0 xóa
  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;