- Typo "unit" vs. "Unit".
- The "lowlevel" import is still needed for the version functions.
Thanks to Marting Ling for pointing them out.
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):
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: