]> sigrok.org Git - libsigrokdecode.git/commit
srd: uart: Use strings for packet types.
authorUwe Hermann <redacted>
Wed, 1 Feb 2012 17:59:18 +0000 (18:59 +0100)
committerUwe Hermann <redacted>
Wed, 1 Feb 2012 22:18:23 +0000 (23:18 +0100)
commitb9e44d1e0964f5c6c99ec52b68a5a6e0bc1ac633
treebb63c710d672507bd791b46976ca00216ea51ee6
parentb77614bc977475102062ac5d1c8fe8e55349315a
srd: uart: Use strings for packet types.

While this has a (small) performance penalty compared to using integers,
it has the advantage of not requiring the use of magic numbers which
need to be declared in both the UART decoder and all decoders which
stack on top of UART.
decoders/pan1321/pan1321.py
decoders/uart/uart.py