]> sigrok.org Git - libsigrok.git/commit
microchip-pickit2: move channel creation to after device context alloc
authorGerhard Sittig <redacted>
Sun, 9 Apr 2023 08:00:34 +0000 (10:00 +0200)
committerGerhard Sittig <redacted>
Sun, 9 Apr 2023 21:33:35 +0000 (23:33 +0200)
commit4d9c2b772ba7e5946bd54b3f2a330b6cd9379f85
tree8caada2bc73ac49c2d678e8a989aaa1a76c3c4e7
parentfd2a8a5056aabd4231a1b0f3c72c70dab8207f26
microchip-pickit2: move channel creation to after device context alloc

Create device instance (sdi) and device context (devc) first, before
creating channels and channel groups. Channel creation might want to
reflect on per-device properties which are kept in the context.
src/hardware/microchip-pickit2/api.c