- if (!strcmp(stropt, "sigrok")) {
- default_pattern = PATTERN_SIGROK;
- } else if (!strcmp(stropt, "random")) {
- default_pattern = PATTERN_RANDOM;
- } else if (!strcmp(stropt, "incremental")) {
- default_pattern = PATTERN_INC;
- } else if (!strcmp(stropt, "all-low")) {
- default_pattern = PATTERN_ALL_LOW;
- } else if (!strcmp(stropt, "all-high")) {
- default_pattern = PATTERN_ALL_HIGH;
+ if (!strcmp(stropt, STR_PATTERN_SIGROK)) {
+ devc->sample_generator = PATTERN_SIGROK;
+ } else if (!strcmp(stropt, STR_PATTERN_RANDOM)) {
+ devc->sample_generator = PATTERN_RANDOM;
+ } else if (!strcmp(stropt, STR_PATTERN_INC)) {
+ devc->sample_generator = PATTERN_INC;
+ } else if (!strcmp(stropt, STR_PATTERN_ALL_LOW)) {
+ devc->sample_generator = PATTERN_ALL_LOW;
+ } else if (!strcmp(stropt, STR_PATTERN_ALL_HIGH)) {
+ devc->sample_generator = PATTERN_ALL_HIGH;