]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kingst-la2016/protocol.c
kingst-la2016: weaken run state check in hardware initialization
[libsigrok.git] / src / hardware / kingst-la2016 / protocol.c
index de5e1ac747eeba6927a4afe08e41f60f79043bfc..21265ab00d557524296dd0ce7d32f441b5fd6fd2 100644 (file)
@@ -1404,8 +1404,8 @@ SR_PRIV int la2016_init_hardware(const struct sr_dev_inst *sdi)
        }
 
        state = run_state(sdi);
-       if (state != 0x85e9) {
-               sr_warn("Unexpected run state, want 0x85e9, got 0x%04x.", state);
+       if ((state & 0xfff0) != 0x85e0) {
+               sr_warn("Unexpected run state, want 0x85eX, got 0x%04x.", state);
        }
 
        ret = ctrl_out(sdi, CMD_BULK_RESET, 0x00, 0, NULL, 0);