Re: [sigrok-devel] decode() missing positional arguments

2020-04-13 Thread Helge Kruse
Hello Soeren, thanks for the answer. I tried to show the functions but omitted the function body. Of course there is code, that should be substituted in my mail. But I found it as a simple user error. I started the sigrok-cli with the "-P seanet" parameter to add my decoder. I forget to stack the

Re: [sigrok-devel] decode() missing positional arguments

2020-04-13 Thread Soeren Apel
Hello Helge, Is that the exact code you're running: If so, wouldn't it need to be def __init__(self): pass def decode(self, ss, es, data): instead? Maybe that's what's confusing the python parser. Regards -Soeren On Mon, 2020-04-13 at 11:13 +0200, Helge Kruse wro

[sigrok-devel] decode() missing positional arguments

2020-04-13 Thread Helge Kruse
I think this should be a FAQ style question but unfortunately I didn't find any answer yet. I have decoder added to the directory ~/.local/share/libsigrokdecode/decoders like this class Decoder(srd.Decoder): api_version = 3 id = 'seanet' inputs = ['uart'] outputs =