调整对折
This commit is contained in:
parent
219effc0ca
commit
6f13685865
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue