]> sigrok.org Git - libsigrok.git/commit
dmm/bm52x: unbreak build when serial comm is not available
authorGerhard Sittig <redacted>
Tue, 29 Dec 2020 17:31:38 +0000 (18:31 +0100)
committerGerhard Sittig <redacted>
Tue, 29 Dec 2020 17:31:38 +0000 (18:31 +0100)
commitf93bf8ba02995081312c448df7aeaf25b1118033
treefed369a5921b9a77c05075a8fd52cf8339b52386
parent6065d660e04b05e94bc31adc6fe0333ecadb040f
dmm/bm52x: unbreak build when serial comm is not available

Make another code path in the Brymen BM52x packet parser optional which
snuck in earlier and broke compilation when serial_comm dependencies are
not met.

Ideally the src/dmm/ parser code would not get built at all in that
case, but building a parser with reduced functionality and not using it
later because its callers are conditional is as good, and is what other
DMM packet parsers did in the past.

How to reproduce:

  $ configure --without-libserialport --without-libhidapi --without-libbluez
  $ make
src/dmm/bm52x.c