TWAIN增加仓田OEM判定

This commit is contained in:
gb 2022-11-17 10:26:53 +08:00
parent 303cfd95d3
commit 46f43ebd0d
1 changed files with 7 additions and 2 deletions

View File

@ -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