]> sigrok.org Git - libsigrok.git/commit
serial: dump DMM packets during stream detection
authorGerhard Sittig <redacted>
Mon, 8 Oct 2018 15:07:07 +0000 (17:07 +0200)
committerUwe Hermann <redacted>
Sat, 13 Oct 2018 13:57:01 +0000 (15:57 +0200)
commite5fa47c1c938fc7389d18df314784871e16049ae
treea5c6515bb7e82c9a034a29f6dfb9b501e3348b0c
parent75aaf967e33db48a0f02b2f52abcd3139b426c0c
serial: dump DMM packets during stream detection

Regular operation of serial DMM drivers optionally can dump packet bytes
after the intialization phase has synchronized to the stream. Failure to
synchronize to the stream left developers without a dump, which complicates
research what went wrong.

Do dump packet content while the serial_stream_detect() routine tries to
synchronize to the stream. Use the spew level since the dump occurs upon
every attempt, which translates to: every received byte until a valid
packet was seen (or the synchronization phase expired).
src/serial.c