X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fpipistrello-ols%2Fprotocol.c;h=5b0bcfb9e4ae5c2061662ffa25ac278359a0e000;hb=329733d92c5004f0fe308eff26b9537fded2cdf3;hp=1d0c9f208839200ee97c5de38fc66d479b55f187;hpb=5e23fcab889c62864b92aa3ad6902ce3e9f5be49;p=libsigrok.git diff --git a/src/hardware/pipistrello-ols/protocol.c b/src/hardware/pipistrello-ols/protocol.c index 1d0c9f20..5b0bcfb9 100644 --- a/src/hardware/pipistrello-ols/protocol.c +++ b/src/hardware/pipistrello-ols/protocol.c @@ -20,7 +20,6 @@ #include "protocol.h" extern SR_PRIV struct sr_dev_driver p_ols_driver_info; -static struct sr_dev_driver *di = &p_ols_driver_info; SR_PRIV int write_shortcommand(struct dev_context *devc, uint8_t command) { @@ -227,7 +226,7 @@ SR_PRIV struct sr_dev_inst *p_ols_get_metadata(uint8_t *buf, int bytes_read, str sdi = g_malloc0(sizeof(struct sr_dev_inst)); sdi->status = SR_ST_INACTIVE; - sdi->driver = di; + sdi->driver = &p_ols_driver_info; sdi->priv = devc; devname = g_string_new(""); @@ -385,7 +384,6 @@ SR_PRIV int p_ols_set_samplerate(const struct sr_dev_inst *sdi, return SR_OK; } - SR_PRIV int p_ols_receive_data(int fd, int revents, void *cb_data) { struct dev_context *devc;