dsp校正返回不支持

This commit is contained in:
yangjiaxuan 2023-06-28 19:03:14 +08:00
parent c389c75bbe
commit e1502825ad
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#include "hg_scanner_200.h" #include "hg_scanner_200.h"
#include "../wrapper/hg_log.h" #include "../wrapper/hg_log.h"
#if defined(WIN32) || defined(_WIN64) #if defined(WIN32) || defined(_WIN64)
@ -825,7 +825,9 @@ int hg_scanner_200::set_leaflet_scan(void)
int hg_scanner_200::set_clear_roller_num(void) int hg_scanner_200::set_clear_roller_num(void)
{ {
return SCANNER_ERR_DEVICE_NOT_SUPPORT; std::lock_guard<std::mutex> lock(io_lock_);
USBCB usbcb = { setting3288dsp::CLR_ROLLER_NUM,0,4 };
return writeusb(usbcb);
} }
int hg_scanner_200::set_clear_history_num(void) int hg_scanner_200::set_clear_history_num(void)
{ {
@ -980,6 +982,8 @@ int hg_scanner_200::get_devs_distortion_check_val(float& data)
int hg_scanner_200::set_auto_flat(int data) int hg_scanner_200::set_auto_flat(int data)
{ {
return SCANNER_ERR_DEVICE_NOT_SUPPORT;
USBCB usbcb = { setting3288dsp::START_FLAT,data,0 }; USBCB usbcb = { setting3288dsp::START_FLAT,data,0 };
int len = sizeof(usbcb); int len = sizeof(usbcb);
int ret = SCANNER_ERR_OK; int ret = SCANNER_ERR_OK;

View File

@ -1125,7 +1125,7 @@ void hg_scanner_239::thread_correction(void)
sinfo.resize(len); sinfo.resize(len);
io_->read_bulk(&sinfo[0],&len); io_->read_bulk(&sinfo[0],&len);
char buf[1024]; char buf[2048];
strcpy(buf, sinfo.c_str()); strcpy(buf, sinfo.c_str());
notify_ui_working_status(buf, SANE_EVENT_STATUS, status_); notify_ui_working_status(buf, SANE_EVENT_STATUS, status_);
printf("%s\r\n", sinfo.c_str()); printf("%s\r\n", sinfo.c_str());