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:
|
case VIDEO_PU_BRIGHTNESS_CONTROL:
|
||||||
switch (setup->bRequest) {
|
switch (setup->bRequest) {
|
||||||
case VIDEO_REQUEST_SET_CUR: {
|
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;
|
} break;
|
||||||
case VIDEO_REQUEST_GET_CUR: {
|
case VIDEO_REQUEST_GET_CUR: {
|
||||||
uint16_t wBrightness = 0x0080;
|
uint16_t wBrightness = 0x0080;
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
#include "esp_intr_alloc.h"
|
#include "esp_intr_alloc.h"
|
||||||
#include "esp_private/usb_phy.h"
|
#include "esp_private/usb_phy.h"
|
||||||
#include "soc/periph_defs.h"
|
#include "soc/periph_defs.h"
|
||||||
#include "usb_config.h"
|
#include "usbd_core.h"
|
||||||
#include "usb_log.h"
|
#include "usbh_core.h"
|
||||||
|
|
||||||
#ifdef CONFIG_IDF_TARGET_ESP32S2
|
#ifdef CONFIG_IDF_TARGET_ESP32S2
|
||||||
#define DEFAULT_CPU_FREQ_MHZ CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ
|
#define DEFAULT_CPU_FREQ_MHZ CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ
|
||||||
|
|||||||
Reference in New Issue
Block a user