Merge pull request #633 from adafruit/fix-gamepad-report-type-conflict

Fix gamepad report type conflict
This commit is contained in:
Ha Thach authored and GitHub committed 2021-04-24 08:18:16 +07:00
commit 50b43ec333
2 files changed
+10 -22

No files matched your search

+10 -8
View File
@@ -7,7 +7,14 @@ jobs:
strategy:
fail-fast: false
matrix:
arduino-platform: ['cluenrf52840', 'cplaynrf52840', 'feather52832', 'feather52840', 'feather52840sense', 'itsybitsy52840']
arduino-platform:
# Alphabetical order
- 'cluenrf52840'
- 'cplaynrf52840'
- 'feather52832'
- 'feather52840'
- 'feather52840sense'
- 'itsybitsy52840'
runs-on: ubuntu-latest
@@ -19,13 +26,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive
with:
submodules: 'true'
- name: Install Arduino CLI and Tools
run: |
@@ -53,20 +53,6 @@ typedef struct ATTR_PACKED
uint16_t usage_value; ///< Usage value of the pressed control
} hid_consumer_control_report_t;
/// Gamepad report
typedef struct ATTR_PACKED
{
struct ATTR_PACKED
{
uint8_t x : 2;
uint8_t y : 2;
uint8_t : 4;
};
uint8_t buttons;
}hid_gamepad_report_t;
class BLEHidGeneric : public BLEService
{
public: