Browse Source

Joystick: Use classes member variable...

I accidentally created a local version of a member variable...
main
Kurt Eckhardt 6 years ago
parent
commit
9deb934cae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      joystick.cpp

+ 1
- 1
joystick.cpp View File

uint32_t count_end_points = descriptors[4]; uint32_t count_end_points = descriptors[4];
if (count_end_points < 2) return false; if (count_end_points < 2) return false;
if (descriptors[5] != 0xff) return false; // bInterfaceClass, 3 = HID if (descriptors[5] != 0xff) return false; // bInterfaceClass, 3 = HID
uint32_t rx_ep_ = 0;
rx_ep_ = 0;
uint32_t txep = 0; uint32_t txep = 0;
uint8_t rx_interval = 0; uint8_t rx_interval = 0;
uint8_t tx_interval = 0; uint8_t tx_interval = 0;

Loading…
Cancel
Save