]> sigrok.org Git - sigrok-meter.git/commitdiff
Fix two bugs.
authorUwe Hermann <redacted>
Fri, 19 Apr 2013 17:18:53 +0000 (19:18 +0200)
committerUwe Hermann <redacted>
Fri, 19 Apr 2013 17:18:53 +0000 (19:18 +0200)
 - Typo "unit" vs. "Unit".

 - The "lowlevel" import is still needed for the version functions.

Thanks to Marting Ling for pointing them out.

sigrok-meter

index 4355ff733171310819da5ee13c23ae8efef429a7..289d25c6dd97d8b1b1b7b190c634b0ecfdd4427d 100755 (executable)
@@ -22,6 +22,7 @@
 from multiprocessing import Process, Queue
 from gi.repository import Gtk, GObject
 from sigrok.core import *
+from sigrok.core import lowlevel as ll
 
 def init_and_run(queue):
     def datafeed_in(device, packet):
@@ -32,7 +33,7 @@ def init_and_run(queue):
                 unit_str = " V"
             elif unit is Unit.OHM:
                 unit_str = " Ohm"
-            elif unit is unit.AMPERE:
+            elif unit is Unit.AMPERE:
                 unit_str = " A"
             mqflags, mqflags_str = packet.payload.mqflags, ""
             if QuantityFlag.AC in mqflags: