Add product ID for XREAL Air 2 Pros

This commit is contained in:
wheaney 2023-11-19 20:57:30 -08:00
parent 43983153be
commit 20f01821a1
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@
#include <cstdint> #include <cstdint>
#endif #endif
#define NUM_SUPPORTED_PRODUCTS 2 #define NUM_SUPPORTED_PRODUCTS 3
extern const uint16_t xreal_vendor_id; extern const uint16_t xreal_vendor_id;
extern const uint16_t xreal_product_ids[NUM_SUPPORTED_PRODUCTS]; 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_vendor_id = 0x3318;
const uint16_t xreal_product_ids[NUM_SUPPORTED_PRODUCTS] = { const uint16_t xreal_product_ids[NUM_SUPPORTED_PRODUCTS] = {
0x0424, // XREAL Air 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) { bool is_xreal_product_id(uint16_t product_id) {