diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-10-03 18:23:34 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-10-03 21:29:51 +0200 |
commit | 27a86cefb655ecdfb8d912a5388fe8768b264ff5 (patch) | |
tree | 6a45ceb607302f690688b7e827f08a08d24681c7 /tests/lib.h | |
parent | 1105c425345961fa527a7994845bc487b1c7bdf5 (diff) | |
download | libsigrokdecode-27a86cefb655ecdfb8d912a5388fe8768b264ff5.tar.gz libsigrokdecode-27a86cefb655ecdfb8d912a5388fe8768b264ff5.zip |
type_decoder: update .samplenum before ending .wait() with EOFError
When the protocol decoder's input data is exhausted, then the .wait()
method will raise the EOFError exception. Python decoders can catch this
exception and handle the condition. For proper annotation emission it is
essential that the self.samplenum value corresponds to the last position
in the input stream. Update it before returning from the .wait() call.
Diffstat (limited to 'tests/lib.h')
0 files changed, 0 insertions, 0 deletions