The hp_3478a_receive_data() routine uses SPOLL to only communicate
measurement data when they have become available. Use a symbolic name
for the tested bitfield for consistency with other driver locations
and for improved readability.
*/
if (sr_scpi_gpib_spoll(scpi, &status_register) != SR_OK)
return FALSE;
*/
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. */
return TRUE;
/* Get a reading from the DMM. */