调整对折

This commit is contained in:
13038267101 2022-10-22 16:39:15 +08:00
parent 219effc0ca
commit 6f13685865
1 changed files with 4 additions and 1 deletions

View File

@ -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; setting_map_[sn] = &hg_scanner::setting_set_isremove_low_hole;
else if (val == SANE_STD_OPT_NAME_SEARCH_HOLE_RANGE_B) else if (val == SANE_STD_OPT_NAME_SEARCH_HOLE_RANGE_B)
setting_map_[sn] = &hg_scanner::setting_set_isremove_low_hole_threshold; 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) 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); isremove_low_hole_threshold = *((double*)data);
return SCANNER_ERR_OK; 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); string str((char*)data);
bool exact = NULL; bool exact = NULL;