mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Enable Composite USB HID for all F4, add PG for USB device. (#5525)
This commit is contained in:
parent
efda704ee5
commit
b9ab42d6a7
10 changed files with 98 additions and 21 deletions
|
@ -85,7 +85,7 @@
|
|||
|
||||
#include "telemetry/telemetry.h"
|
||||
|
||||
#ifdef USB_CDC_HID
|
||||
#ifdef USE_USB_CDC_HID
|
||||
//TODO: Make it platform independent in the future
|
||||
#include "vcpf4/usbd_cdc_vcp.h"
|
||||
#include "usbd_hid_core.h"
|
||||
|
@ -145,7 +145,7 @@ static void taskUpdateRxMain(timeUs_t currentTimeUs)
|
|||
|
||||
isRXDataNew = true;
|
||||
|
||||
#ifdef USB_CDC_HID
|
||||
#ifdef USE_USB_CDC_HID
|
||||
if (!ARMING_FLAG(ARMED)) {
|
||||
int8_t report[8];
|
||||
for (int i = 0; i < 8; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue