enum For string descriptor (langid, manufacturer product, serila): always get the first 2 bytes to determine the length first. otherwise, some device may have buffer overflow.

This commit is contained in:
hathach
2025-04-14 16:09:32 +07:00
parent edbea218b9
commit e8a84f9076
4 changed files with 76 additions and 58 deletions

View File

@@ -36,7 +36,7 @@
extern "C" {
#endif
#define NEOPIXEL_PIN 48
#define NEOPIXEL_PIN 38
#define BUTTON_PIN 0
#define BUTTON_STATE_ACTIVE 0