From: Uwe Hermann Date: Fri, 19 Apr 2013 17:18:53 +0000 (+0200) Subject: Fix two bugs. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=627e5230c43fdda5595a20c52e6d5da976054752;p=sigrok-meter.git Fix two bugs. - Typo "unit" vs. "Unit". - The "lowlevel" import is still needed for the version functions. Thanks to Marting Ling for pointing them out. --- diff --git a/sigrok-meter b/sigrok-meter index 4355ff7..289d25c 100755 --- a/sigrok-meter +++ b/sigrok-meter @@ -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: