reducing warnings

This commit is contained in:
rusefillc 2021-07-13 14:50:10 -04:00
parent 7fd2e8275f
commit 090725d273
3 changed files with 4 additions and 4 deletions

View File

@ -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];
}

View File

@ -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
/**

View File

@ -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