X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fhp-3478a%2Fprotocol.c;h=ed8878bec5a25c8560950713b0ba21caf942d740;hb=81ceb6a51dd666987fb5c67b83c5ba14d105b301;hp=2e9130b022a9ab01832701ebdae41eb0c1533c47;hpb=569165c0e44323ce8a4baf1da4d540e8976e9d33;p=libsigrok.git diff --git a/src/hardware/hp-3478a/protocol.c b/src/hardware/hp-3478a/protocol.c index 2e9130b0..ed8878be 100644 --- a/src/hardware/hp-3478a/protocol.c +++ b/src/hardware/hp-3478a/protocol.c @@ -489,7 +489,7 @@ SR_PRIV int hp_3478a_receive_data(int fd, int revents, void *cb_data) */ if (sr_scpi_gpib_spoll(scpi, &status_register) != SR_OK) return FALSE; - if (!(((uint8_t)status_register) & 0x01)) + if (!(((uint8_t)status_register) & SRQ_BUS_AVAIL)) return TRUE; /* Get a reading from the DMM. */