From 3501bb7fc314646b285bb81e9e7f3700d5fb78da Mon Sep 17 00:00:00 2001 From: Eric Katzfey Date: Fri, 15 Nov 2024 09:41:27 -0800 Subject: [PATCH] AP_RCProtocol: Remove extraneous zero initializers to clean up Qurt compiler warnings --- libraries/AP_RCProtocol/spm_srxl.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libraries/AP_RCProtocol/spm_srxl.cpp b/libraries/AP_RCProtocol/spm_srxl.cpp index 4c8653a3f2e93..de5a923ec8635 100644 --- a/libraries/AP_RCProtocol/spm_srxl.cpp +++ b/libraries/AP_RCProtocol/spm_srxl.cpp @@ -74,27 +74,27 @@ const uint16_t srxlCRCTable[] = /// PUBLIC VARIABLES /// -SrxlChannelData srxlChData = {0, 0, 0, {0}}; -SrxlTelemetryData srxlTelemData = {0}; +SrxlChannelData srxlChData; +SrxlTelemetryData srxlTelemData; SrxlVtxData srxlVtxData = {0, 0, 1, 0, 0, 1}; /// LOCAL VARIABLES /// -static SrxlDevice srxlThisDev = {0}; +static SrxlDevice srxlThisDev; static SrxlBus srxlBus[SRXL_NUM_OF_BUSES]; static bool srxlChDataIsFailsafe = false; static bool srxlTelemetryPhase = false; #ifdef SRXL_INCLUDE_MASTER_CODE -static uint32_t srxlFailsafeChMask = 0; // Tracks all active channels for use during failsafe transmission +static uint32_t srxlFailsafeChMask; // Tracks all active channels for use during failsafe transmission #endif -static SrxlBindData srxlBindInfo = {0, 0, 0, 0}; -static SrxlReceiverStats srxlRx = {0}; -static uint16_t srxlTelemSuppressCount = 0; +static SrxlBindData srxlBindInfo; +static SrxlReceiverStats srxlRx; +static uint16_t srxlTelemSuppressCount; #ifdef SRXL_INCLUDE_FWD_PGM_CODE -static SrxlFullID srxlFwdPgmDevice = {0, 0}; // Device that should accept Forward Programming connection by default -static uint8_t srxlFwdPgmBuffer[FWD_PGM_MAX_DATA_SIZE] = {0}; -static uint8_t srxlFwdPgmBufferLength = 0; +static SrxlFullID srxlFwdPgmDevice; // Device that should accept Forward Programming connection by default +static uint8_t srxlFwdPgmBuffer[FWD_PGM_MAX_DATA_SIZE]; +static uint8_t srxlFwdPgmBufferLength; #endif // Include additional header and externs if using STM32 hardware acceleration