TWAIN增加仓田OEM判定
This commit is contained in:
parent
303cfd95d3
commit
46f43ebd0d
|
@ -364,7 +364,7 @@ bool scanner::is_belong_serial(int vid, int pid, SCANNERID serial)
|
||||||
{
|
{
|
||||||
if (GET_SCANNER_PID(serial) == 0x100)
|
if (GET_SCANNER_PID(serial) == 0x100)
|
||||||
{
|
{
|
||||||
return pid == 0x100 || pid == 0x139 ;
|
return pid == 0x100 || pid == 0x139;
|
||||||
}
|
}
|
||||||
else if (GET_SCANNER_PID(serial) == 0x200)
|
else if (GET_SCANNER_PID(serial) == 0x200)
|
||||||
{
|
{
|
||||||
|
@ -378,6 +378,11 @@ bool scanner::is_belong_serial(int vid, int pid, SCANNERID serial)
|
||||||
{
|
{
|
||||||
return pid == 0x400 || pid == 0x402 || pid == 0x439;
|
return pid == 0x400 || pid == 0x402 || pid == 0x439;
|
||||||
}
|
}
|
||||||
|
else if (GET_SCANNER_PID(serial) == 0x138 ||
|
||||||
|
GET_SCANNER_PID(serial) == 0x238 ||
|
||||||
|
GET_SCANNER_PID(serial) == 0x303 ||
|
||||||
|
GET_SCANNER_PID(serial) == 0x404) // OEM_CANGTIAN
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (vid == PRODUCT_VENDOR_HG1)
|
else if (vid == PRODUCT_VENDOR_HG1)
|
||||||
|
@ -2837,7 +2842,7 @@ void init_log(void)
|
||||||
fseek(g_file_, 0, SEEK_END);
|
fseek(g_file_, 0, SEEK_END);
|
||||||
if (ftell(g_file_))
|
if (ftell(g_file_))
|
||||||
{
|
{
|
||||||
std::wstring sep(L"\r\n\r\n\r\n=================================================\r\n");
|
std::wstring sep(L"\r\n\r\n\r\n=======================================================\r\n");
|
||||||
fwrite(sep.c_str(), 2, sep.length(), g_file_);
|
fwrite(sep.c_str(), 2, sep.length(), g_file_);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue