2
0
forked from Ivasoft/DSView

fix: The program enters a dead loop after click stop

This commit is contained in:
dreamsourcelabTAI
2023-09-22 20:51:28 +08:00
parent 60b446eb80
commit 09479138f0

View File

@@ -2027,13 +2027,9 @@ SR_PRIV int dsl_dev_acquisition_stop(const struct sr_dev_inst *sdi, void *cb_dat
sr_info("%s: Sent acquisition stop command!", __func__);
/* check a real stop of FPGA status*/
uint8_t hw_status = 1;
while (hw_status != 0) {
if (dsl_rd_reg(sdi, HW_STATUS_ADDR, &hw_status) != SR_OK)
sr_err("%s: Get hardware status command failed!", __func__);
else
sr_info("%s: Get hardware status command!", __func__);
}
dsl_rd_reg(sdi, HW_STATUS_ADDR, &hw_status);
/* adc power down*/
if (devc->profile->dev_caps.feature_caps & CAPS_FEATURE_HMCAD1511) {