mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
Check the device status before start to run
This commit is contained in:
parent
e984dca4c9
commit
b12476a16b
@ -495,7 +495,7 @@ namespace pv
|
||||
dsv_err("%s", "Error!No device selected");
|
||||
assert(false);
|
||||
}
|
||||
if (_device_agent.is_collecting())
|
||||
if (_device_status == ST_RUNNING || _device_agent.is_collecting())
|
||||
{
|
||||
dsv_err("%s", "Error!Device is running.");
|
||||
return false;
|
||||
@ -1329,6 +1329,8 @@ namespace pv
|
||||
}
|
||||
case SR_DF_END:
|
||||
{
|
||||
dsv_info("------------SR_DF_END packet.");
|
||||
|
||||
_capture_data->get_logic()->capture_ended();
|
||||
_capture_data->get_dso()->capture_ended();
|
||||
_capture_data->get_analog()->capture_ended();
|
||||
|
@ -566,7 +566,7 @@ private:
|
||||
int _repeat_wait_prog_step;
|
||||
bool _is_saving;
|
||||
bool _is_instant;
|
||||
int _device_status;
|
||||
volatile int _device_status;
|
||||
int _work_time_id;
|
||||
int _capture_times;
|
||||
int _confirm_store_time_id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user