reducing warnings
This commit is contained in:
parent
7fd2e8275f
commit
090725d273
|
@ -181,7 +181,7 @@ operation_mode_e TriggerWaveform::getOperationMode() const {
|
||||||
extern bool printTriggerDebug;
|
extern bool printTriggerDebug;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int TriggerWaveform::getExpectedEventCount(int channelIndex) const {
|
size_t TriggerWaveform::getExpectedEventCount(int channelIndex) const {
|
||||||
return expectedEventCount[channelIndex];
|
return expectedEventCount[channelIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -178,12 +178,12 @@ public:
|
||||||
|
|
||||||
void calculateExpectedEventCounts(bool useOnlyRisingEdgeForTrigger);
|
void calculateExpectedEventCounts(bool useOnlyRisingEdgeForTrigger);
|
||||||
|
|
||||||
int getExpectedEventCount(int channelIndex) const;
|
size_t getExpectedEventCount(int channelIndex) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is used for signal validation
|
* 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
|
#if EFI_UNIT_TEST
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -54,7 +54,7 @@ typedef struct {
|
||||||
* values are used to detect trigger signal errors.
|
* values are used to detect trigger signal errors.
|
||||||
* see TriggerWaveform
|
* 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.
|
* 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
|
* Current implementation is a bit funny - it does not really consider if an event
|
||||||
|
|
Loading…
Reference in New Issue