chore: fix some compiler warnings when building firmware (#5453)

This commit is contained in:
philmoz
2024-08-18 11:57:11 +10:00
committed by GitHub
parent ce01091eea
commit 01869444c8
8 changed files with 9 additions and 16 deletions
@@ -23,6 +23,8 @@
#include "usb_joystick.h"
#else
#include "edgetx_helpers.h"
#include "dataconstants.h"
#include "globals.h"
#endif
extern "C" {
@@ -203,16 +205,9 @@ void usbJoystickRestart()
USBD_RegisterClass(&hUsbDevice, &USBD_HID);
USBD_Start(&hUsbDevice);
}
#else
// TODO: fix after HAL conversion is complete
#warning channelOutputs should come from "globals.h"
#define MAX_OUTPUT_CHANNELS 32
extern int16_t channelOutputs[MAX_OUTPUT_CHANNELS];
#endif
/*
Prepare and send new USB data packet