TWAIN增加仓田OEM判定
This commit is contained in:
parent
303cfd95d3
commit
46f43ebd0d
|
@ -378,6 +378,11 @@ bool scanner::is_belong_serial(int vid, int pid, SCANNERID serial)
|
|||
{
|
||||
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)
|
||||
|
@ -2837,7 +2842,7 @@ void init_log(void)
|
|||
fseek(g_file_, 0, SEEK_END);
|
||||
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_);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue