korad-kaxxxxp: factor out ID response lookup in the models table master
authorGerhard Sittig <gerhard.sittig@gmx.net>
Fri, 16 Sep 2022 08:14:01 +0000 (10:14 +0200)
committerGerhard Sittig <gerhard.sittig@gmx.net>
Sat, 17 Sep 2022 09:24:52 +0000 (11:24 +0200)
commit68321f73b924b0392c3a738f82e92374d448b9a8
tree994a53dc320628d2de721dbc29ff3027bb26d8c3
parentd32120c4c30650c30720d04eaf88dcf7b76a1e9f
korad-kaxxxxp: factor out ID response lookup in the models table

Introduce a model_lookup() routine so that the table iteration need not
get duplicated across several call sites.
src/hardware/korad-kaxxxxp/api.c