Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions right/src/usb_interfaces/usb_interface_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static void SwitchActiveUsbMouseReport(void)

#ifndef __ZEPHYR__

static uint8_t usbMouseFeatBuffer[USB_MOUSE_FEAT_REPORT_LENGTH];
static uint8_t usbMouseFeatBuffer[USB_MOUSE_FEAT_REPORT_LENGTH] = {0};

usb_hid_protocol_t UsbMouseGetProtocol(void)
{
Expand Down Expand Up @@ -80,7 +80,6 @@ usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param

switch (event) {
case ((uint32_t)-kUSB_DeviceEventSetConfiguration):
usbMouseFeatBuffer[0] = 0;
error = kStatus_USB_Success;
break;
case ((uint32_t)-kUSB_DeviceEventSetInterface):
Expand Down
Loading