Skip to content

Commit

Permalink
AP_RCProtocol: Remove unused array. This array was causing a Qurt com…
Browse files Browse the repository at this point in the history
…piler warning.
  • Loading branch information
katzfey authored and tridge committed Nov 18, 2024
1 parent 69ebf63 commit 7a6a628
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions libraries/AP_RCProtocol/spm_srxl.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,6 @@ typedef enum
SrxlDevType_Broadcast = 15
} SrxlDevType;

// Default device ID list used by master when polling
static const uint8_t SRXL_DEFAULT_ID_OF_TYPE[16] =
{
[SrxlDevType_None] = 0x00,
[SrxlDevType_RemoteReceiver] = 0x10,
[SrxlDevType_Receiver] = 0x21,
[SrxlDevType_FlightController] = 0x30,
[SrxlDevType_ESC] = 0x40,
[5] = 0x60,
[SrxlDevType_SRXLServo1] = 0x60,
[SrxlDevType_SRXLServo2] = 0x70,
[SrxlDevType_VTX] = 0x81,
[9] = 0xFF,
[10] = 0xFF,
[11] = 0xFF,
[12] = 0xFF,
[13] = 0xFF,
[14] = 0xFF,
[SrxlDevType_Broadcast] = 0xFF,
};

// Set SRXL_CRC_OPTIMIZE_MODE in spm_srxl_config.h to one of the following values
#define SRXL_CRC_OPTIMIZE_EXTERNAL (0) // Uses an external function defined by SRXL_CRC_EXTERNAL_FN for CRC
#define SRXL_CRC_OPTIMIZE_SPEED (1) // Uses table lookup for CRC computation (requires 512 const bytes for CRC table)
Expand Down

0 comments on commit 7a6a628

Please sign in to comment.