diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index 2783a37..98dc0bc 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -390,6 +390,9 @@ void hg_scanner::set_setting_map(int sn, const char* name) setting_map_[sn] = &hg_scanner::setting_set_isremove_low_hole; else if (val == SANE_STD_OPT_NAME_SEARCH_HOLE_RANGE_B) setting_map_[sn] = &hg_scanner::setting_set_isremove_low_hole_threshold; + else if (val == SANE_STD_OPT_NAME_SEARCH_HOLE_RANGE_B) + setting_map_[sn] = &hg_scanner::setting_set_fold_type; + } void hg_scanner::thread_handle_usb(void) { @@ -2166,7 +2169,7 @@ int hg_scanner::setting_set_isremove_low_hole_threshold(int sn, void* data) isremove_low_hole_threshold = *((double*)data); return SCANNER_ERR_OK; } -int setting_set_fold_type(int sn, void* data) +int hg_scanner::setting_set_fold_type(int sn, void* data) { string str((char*)data); bool exact = NULL;