X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fasix-sigma%2Fapi.c;h=d8f9bf27c49206bfaa2522005e5c405d3434f4a9;hb=53c8a99c41120a5359e407934ae5041a285046e1;hp=81a5df9380904c48752d79e14d45bec2ae89a99f;hpb=8bd4dc8799ff6839b457e691151f82b9a93c2644;p=libsigrok.git diff --git a/src/hardware/asix-sigma/api.c b/src/hardware/asix-sigma/api.c index 81a5df93..d8f9bf27 100644 --- a/src/hardware/asix-sigma/api.c +++ b/src/hardware/asix-sigma/api.c @@ -252,9 +252,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) devc->capture_ratio = 50; devc->use_triggers = 0; - /* TODO Retrieve some of this state from hardware? */ - devc->firmware_idx = SIGMA_FW_NONE; - devc->clock.samplerate = sigma_get_samplerate(sdi); + /* Get current hardware configuration (or use defaults). */ + (void)sigma_fetch_hw_config(sdi); } libusb_free_device_list(devlist, 1); g_slist_free_full(conn_devices, (GDestroyNotify)sr_usb_dev_inst_free);