单独增加立思辰定制版特殊PID

This commit is contained in:
yangjiaxuan 2023-09-11 18:09:45 +08:00
parent a7820e71c9
commit 52c3f1f8be
3 changed files with 6 additions and 0 deletions

View File

@ -591,6 +591,9 @@ bool scanner::is_belong_serial(int vid, int pid, SCANNERID serial)
} }
else if (vid == PRODUCT_VENDOR_LSC) else if (vid == PRODUCT_VENDOR_LSC)
{ {
#if defined (LISICHENG_SPECIAL)
return GET_SCANNER_VID(serial) == vid && GET_SCANNER_PID(serial) == pid;
#else
if (GET_SCANNER_VID(serial) == PRODUCT_VENDOR_LSC) if (GET_SCANNER_VID(serial) == PRODUCT_VENDOR_LSC)
{ {
if (GET_SCANNER_PID(serial) == 0x8420) if (GET_SCANNER_PID(serial) == 0x8420)
@ -610,6 +613,8 @@ bool scanner::is_belong_serial(int vid, int pid, SCANNERID serial)
return pid == 0x8730 || pid == 0x8739; return pid == 0x8730 || pid == 0x8739;
} }
} }
#endif
return false; return false;
} }
else if (vid == PRODUCT_VENDOR_DL) else if (vid == PRODUCT_VENDOR_DL)

Binary file not shown.

View File

@ -21,6 +21,7 @@ enum oem
OEM_NEUTRAL, OEM_NEUTRAL,
OEM_DELI OEM_DELI
}; };
//#define LISICHENG_SPECIAL
#define GET_ENUM_NAME_W(e, v) \ #define GET_ENUM_NAME_W(e, v) \
if(e == v) return L###e; if(e == v) return L###e;
#define GET_ENUM_VALUE_W(e, v) \ #define GET_ENUM_VALUE_W(e, v) \