2
0
forked from Ivasoft/DSView

fix: demo device crashed

This commit is contained in:
dreamsourcelabTAI
2023-05-10 15:28:35 +08:00
parent b4f430f317
commit 99b5eb1b49

View File

@@ -223,7 +223,7 @@ static int scan_dsl_file(struct sr_dev_inst *sdi)
get_pattern_mode_from_file(DSO);
get_pattern_mode_from_file(ANALOG);
if(PATTERN_INVALID !=get_pattern_mode_index_by_string(LOGIC, "demo"))
if(PATTERN_RANDOM < get_pattern_mode_index_by_string(LOGIC, "demo"))
{
int index = get_pattern_mode_index_by_string(LOGIC, "demo");
char * str = pattern_strings_logic[index];