summaryrefslogtreecommitdiff
path: root/decoders/spi/pd.py
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-07-26 08:45:32 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-07-26 08:46:32 +0200
commit24490b8aa7cf2631402a3396cb466255e470db26 (patch)
tree76bbfc95519752550d36db2b0fe44d9f73d32183 /decoders/spi/pd.py
parent5881582c4bc00bdcee859dd9dd870d763a3c225f (diff)
downloadlibsigrokdecode-24490b8aa7cf2631402a3396cb466255e470db26.tar.gz
libsigrokdecode-24490b8aa7cf2631402a3396cb466255e470db26.zip
ir_nec: improve robustness, present more data on invalid input
Don't terminate IR frame inspection when successfully decoded fields fail the validity check. Reset internal state on long periods of idle level instead (beware of the late detection of the STOP condition). Unconditionally annotate received fields, and optionally amend them with a warning annotation. It's unexpected to not see the address field value at all just because the number was not acceptable for the potentially incorrect protocol selection. Rename a variable in the decode() routine. The 'b' identifier suggested a bit value, but it was used for the pulse width.
Diffstat (limited to 'decoders/spi/pd.py')
0 files changed, 0 insertions, 0 deletions