]> sigrok.org Git - libsigrok.git/commit
radioshack-dmm: Check for valid mode before calculating checksum
authorAlexandru Gagniuc <redacted>
Thu, 22 Nov 2012 01:30:26 +0000 (19:30 -0600)
committerAlexandru Gagniuc <redacted>
Thu, 22 Nov 2012 01:30:26 +0000 (19:30 -0600)
commit2ecc5d432fd17127fd221ca4940f9617569911d1
tree3e0b81571d22f145ea7271b01363d5bd4e4b0e53
parent54be7c005ed9f1f0eab80d1d1de528c8e8d7ce49
radioshack-dmm: Check for valid mode before calculating checksum

The packet mode byte is akin to a signature. If that is invalid, there's
no point in calculating the checksum, so check the mode first.

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/radioshack-dmm/protocol.c