]> sigrok.org Git - libsigrok.git/commit - src/libsigrok-internal.h
serial-dmm: Use dummy info struct for rs9lcd parser
authorAlexandru Gagniuc <redacted>
Thu, 13 Dec 2012 18:35:06 +0000 (12:35 -0600)
committerUwe Hermann <redacted>
Thu, 13 Dec 2012 22:16:34 +0000 (23:16 +0100)
commite7ed87a469cb3c997ec2e98bc2c39d4284d86252
tree8f4621ca4ed2a84c8bf4739bc1936df81a679e6d
parentc69049091ec6e1383805064d3c472264384ffb57
serial-dmm: Use dummy info struct for rs9lcd parser

The rs9lcd parser, which is used for the RadioShack 22-812 does not use its
*info parameter, and therefore did not have a rs9lcd_info struct declared.

With recent re-factoring of the receive data callbacks, it became necessary to
pass a struct pointer. This made the RECV_DATA macro look like:

- RECV_DATA(RADIOSHACK_22_812, metex14)

giving the wrong impression that the RadioShack 22-182 uses the
metex14 protocol, which is not the case.

Create a dummy rs9lcd_info struct, and correctly identify the parser
as rs9lcd in the RECV_DATA macro:

+ RECV_DATA(RADIOSHACK_22_812, rs9lcd)

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/serial-dmm/protocol.c
libsigrok-internal.h