fix warning
This commit is contained in:
@@ -295,7 +295,7 @@ static int usbd_video_control_unit_terminal_request_handler(uint8_t busid, struc
|
||||
case VIDEO_PU_BRIGHTNESS_CONTROL:
|
||||
switch (setup->bRequest) {
|
||||
case VIDEO_REQUEST_SET_CUR: {
|
||||
uint16_t wBrightness = (uint16_t)(*data)[1] << 8 | (uint16_t)(*data)[0];
|
||||
//uint16_t wBrightness = (uint16_t)(*data)[1] << 8 | (uint16_t)(*data)[0];
|
||||
} break;
|
||||
case VIDEO_REQUEST_GET_CUR: {
|
||||
uint16_t wBrightness = 0x0080;
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
#include "esp_intr_alloc.h"
|
||||
#include "esp_private/usb_phy.h"
|
||||
#include "soc/periph_defs.h"
|
||||
#include "usb_config.h"
|
||||
#include "usb_log.h"
|
||||
#include "usbd_core.h"
|
||||
#include "usbh_core.h"
|
||||
|
||||
#ifdef CONFIG_IDF_TARGET_ESP32S2
|
||||
#define DEFAULT_CPU_FREQ_MHZ CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ
|
||||
|
||||
Reference in New Issue
Block a user