mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-13 10:46:31 +02:00
Summary Added compiler.warning_flags to all chips in platform.txt to reflect users setting of warning level output during compilation (set up in Arduino IDE preferences) Impact When a warning is set to none the compilation will no longer display warnings Related links Solves issue #6118
This commit is contained in:
@ -42,7 +42,9 @@ static bool tinyusb_hid_is_initialized = false;
|
||||
static uint8_t tinyusb_loaded_hid_devices_num = 0;
|
||||
static uint16_t tinyusb_hid_device_descriptor_len = 0;
|
||||
static uint8_t * tinyusb_hid_device_descriptor = NULL;
|
||||
static const char * tinyusb_hid_device_report_types[4] = {"INVALID", "INPUT", "OUTPUT", "FEATURE"};
|
||||
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
|
||||
static const char * tinyusb_hid_device_report_types[4] = {"INVALID", "INPUT", "OUTPUT", "FEATURE"};
|
||||
#endif
|
||||
|
||||
static bool tinyusb_enable_hid_device(uint16_t descriptor_len, USBHIDDevice * device){
|
||||
if(tinyusb_hid_is_initialized){
|
||||
|
@ -274,7 +274,6 @@ size_t USBHIDKeyboard::releaseRaw(uint8_t k)
|
||||
// call release(), releaseAll(), or otherwise clear the report and resend.
|
||||
size_t USBHIDKeyboard::press(uint8_t k)
|
||||
{
|
||||
uint8_t i;
|
||||
if (k >= 0x88) { // it's a non-printing key (not a modifier)
|
||||
k = k - 0x88;
|
||||
} else if (k >= 0x80) { // it's a modifier key
|
||||
@ -298,7 +297,6 @@ size_t USBHIDKeyboard::press(uint8_t k)
|
||||
// it shouldn't be repeated any more.
|
||||
size_t USBHIDKeyboard::release(uint8_t k)
|
||||
{
|
||||
uint8_t i;
|
||||
if (k >= 0x88) { // it's a non-printing key (not a modifier)
|
||||
k = k - 0x88;
|
||||
} else if (k >= 0x80) { // it's a modifier key
|
||||
|
Reference in New Issue
Block a user