瀏覽代碼

Joystick: Use classes member variable...

I accidentally created a local version of a member variable...
main
Kurt Eckhardt 6 年之前
父節點
當前提交
9deb934cae
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      joystick.cpp

+ 1
- 1
joystick.cpp 查看文件

@@ -423,7 +423,7 @@ bool JoystickController::claim(Device_t *dev, int type, const uint8_t *descripto
uint32_t count_end_points = descriptors[4];
if (count_end_points < 2) return false;
if (descriptors[5] != 0xff) return false; // bInterfaceClass, 3 = HID
uint32_t rx_ep_ = 0;
rx_ep_ = 0;
uint32_t txep = 0;
uint8_t rx_interval = 0;
uint8_t tx_interval = 0;

Loading…
取消
儲存