Merge branch 'main' into 'main'

Add product ID for XREAL Air 2 Pros

See merge request TheJackiMonster/nrealAirLinuxDriver!5
This commit is contained in:
Tobias Frisch 2023-11-30 01:16:45 +00:00
commit 915a25baee
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@
#include <cstdint>
#endif
#define NUM_SUPPORTED_PRODUCTS 2
#define NUM_SUPPORTED_PRODUCTS 3
extern const uint16_t xreal_vendor_id;
extern const uint16_t xreal_product_ids[NUM_SUPPORTED_PRODUCTS];

View file

@ -13,7 +13,8 @@
const uint16_t xreal_vendor_id = 0x3318;
const uint16_t xreal_product_ids[NUM_SUPPORTED_PRODUCTS] = {
0x0424, // XREAL Air
0x0428 // XREAL Air 2
0x0428, // XREAL Air 2
0x0432 // XREAL Air 2 Pro
};
bool is_xreal_product_id(uint16_t product_id) {