]> sigrok.org Git - libsigrok.git/commit
serial_bt: move lookup code next to database of known device names
authorGerhard Sittig <redacted>
Thu, 16 Mar 2023 09:56:36 +0000 (10:56 +0100)
committerGerhard Sittig <redacted>
Thu, 16 Mar 2023 13:29:30 +0000 (14:29 +0100)
commitca98f7ae40259e17c07302d27c3faf0056bfeade
tree58dfc5151db58442354b1a1b18046191099f405b
parentc622c88c446a2f5e1c045657ef233c147a1f43d4
serial_bt: move lookup code next to database of known device names

Move the scan_is_supported() routine close to the scan_supported_items[]
table which is traverses. Comment on the database's motivation, and its
current capabilities. This will be helpful should the table need to move
to a separate source file as the database grows over time.
src/serial_bt.c