Przeglądaj źródła

Allow programtic access to the local DEBUG setting

Zachary Kotlarek 9 lat temu
rodzic
commit
913e15205a
1 zmienionych plików z 5 dodań i 0 usunięć
  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;