]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kecheng-kc-330b/protocol.c
scpi-pps: cleaner rewriting of output regulation GVariant
[libsigrok.git] / src / hardware / kecheng-kc-330b / protocol.c
index 005b87cba05a50dd28f219dcd14ac07607635650..1bca7520c8cddf09fc7f8e485e81f93bdff538d6 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <string.h>
 #include "protocol.h"
 
@@ -44,7 +45,7 @@ SR_PRIV int kecheng_kc_330b_handle_events(int fd, int revents, void *cb_data)
        devc = sdi->priv;
        usb = sdi->conn;
        di = sdi->driver;
-       drvc = di->priv;
+       drvc = di->context;
 
        memset(&tv, 0, sizeof(struct timeval));
        libusb_handle_events_timeout_completed(drvc->sr_ctx->libusb_ctx, &tv,