From 090725d27367bb74ebbcec97fc38e42043547187 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 13 Jul 2021 14:50:10 -0400 Subject: [PATCH] reducing warnings --- firmware/controllers/trigger/decoders/trigger_structure.cpp | 2 +- firmware/controllers/trigger/decoders/trigger_structure.h | 4 ++-- firmware/controllers/trigger/trigger_decoder.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/trigger/decoders/trigger_structure.cpp b/firmware/controllers/trigger/decoders/trigger_structure.cpp index 4f28c80265..40cd1c662c 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.cpp +++ b/firmware/controllers/trigger/decoders/trigger_structure.cpp @@ -181,7 +181,7 @@ operation_mode_e TriggerWaveform::getOperationMode() const { extern bool printTriggerDebug; #endif -int TriggerWaveform::getExpectedEventCount(int channelIndex) const { +size_t TriggerWaveform::getExpectedEventCount(int channelIndex) const { return expectedEventCount[channelIndex]; } diff --git a/firmware/controllers/trigger/decoders/trigger_structure.h b/firmware/controllers/trigger/decoders/trigger_structure.h index 9f0e2a944e..d93a333029 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.h +++ b/firmware/controllers/trigger/decoders/trigger_structure.h @@ -178,12 +178,12 @@ public: void calculateExpectedEventCounts(bool useOnlyRisingEdgeForTrigger); - int getExpectedEventCount(int channelIndex) const; + size_t getExpectedEventCount(int channelIndex) const; /** * This is used for signal validation */ - uint32_t expectedEventCount[PWM_PHASE_MAX_WAVE_PER_PWM]; + size_t expectedEventCount[PWM_PHASE_MAX_WAVE_PER_PWM]; #if EFI_UNIT_TEST /** diff --git a/firmware/controllers/trigger/trigger_decoder.h b/firmware/controllers/trigger/trigger_decoder.h index d8368cff94..7019caa185 100644 --- a/firmware/controllers/trigger/trigger_decoder.h +++ b/firmware/controllers/trigger/trigger_decoder.h @@ -54,7 +54,7 @@ typedef struct { * values are used to detect trigger signal errors. * see TriggerWaveform */ - uint32_t eventCount[PWM_PHASE_MAX_WAVE_PER_PWM]; + size_t eventCount[PWM_PHASE_MAX_WAVE_PER_PWM]; /** * This array is used to calculate duty cycle of each trigger channel. * Current implementation is a bit funny - it does not really consider if an event