]> sigrok.org Git - sigrok-meter.git/commitdiff
Use the new Log class from the bindings.
authorUwe Hermann <redacted>
Fri, 19 Apr 2013 11:17:57 +0000 (13:17 +0200)
committerUwe Hermann <redacted>
Fri, 19 Apr 2013 11:17:57 +0000 (13:17 +0200)
sigrok-meter

index d53a288a2eb7d560943df6aee9e8461ea3f53681..25b7025989023b3dd62a611bae5c34c05ef38229 100755 (executable)
@@ -21,7 +21,7 @@
 
 from multiprocessing import Process, Queue
 from gi.repository import Gtk, GObject
-from sigrok.core import Context, Driver, Device, Session, Packet
+from sigrok.core import Context, Driver, Device, Session, Packet, Log
 from sigrok.core import lowlevel as ll
 
 def init_and_run(queue):
@@ -43,7 +43,8 @@ def init_and_run(queue):
             for i in range(packet.payload.num_samples):
                 queue.put("%f%s%s" % (data[i], unit_str, mqflags_str))
 
-    # ll.sr_log_loglevel_set(5)
+    # log = Log()
+    # log.level = Log.SPEW
     context = Context()
     driver = context.drivers['voltcraft-vc820']
     device = driver.scan()[0]