X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fpipistrello-ols%2Fprotocol.c;fp=src%2Fhardware%2Fpipistrello-ols%2Fprotocol.c;h=f3bd15b0272d9c290d89f4c3af9d0438c508cd84;hb=4f840ce965b1c30c5ab75afecc56193cbaf5c1b3;hp=1d0c9f208839200ee97c5de38fc66d479b55f187;hpb=9e60a31fb954493754770fe2192db74b947c6867;p=libsigrok.git diff --git a/src/hardware/pipistrello-ols/protocol.c b/src/hardware/pipistrello-ols/protocol.c index 1d0c9f20..f3bd15b0 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("");