From c27a79760c5a71817a1b890858b18394ac432c6c Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 26 Aug 2020 17:37:15 -0400 Subject: [PATCH] const --- firmware/controllers/trigger/trigger_decoder.cpp | 2 +- firmware/controllers/trigger/trigger_decoder.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/trigger/trigger_decoder.cpp b/firmware/controllers/trigger/trigger_decoder.cpp index 80a9869ffb..f546f69693 100644 --- a/firmware/controllers/trigger/trigger_decoder.cpp +++ b/firmware/controllers/trigger/trigger_decoder.cpp @@ -272,7 +272,7 @@ void TriggerStateWithRunningStatistics::runtimeStatistics(TriggerFormDetails *tr } } -bool TriggerState::isValidIndex(TriggerWaveform *triggerShape) const { +bool TriggerState::isValidIndex(const TriggerWaveform *triggerShape) const { return currentCycle.current_index < triggerShape->getSize(); } diff --git a/firmware/controllers/trigger/trigger_decoder.h b/firmware/controllers/trigger/trigger_decoder.h index 769a4097f7..a4daed4708 100644 --- a/firmware/controllers/trigger/trigger_decoder.h +++ b/firmware/controllers/trigger/trigger_decoder.h @@ -91,7 +91,7 @@ public: const efitick_t nowNt, const TriggerWaveform *triggerShape); - bool isValidIndex(TriggerWaveform *triggerShape) const; + bool isValidIndex(const TriggerWaveform *triggerShape) const; /** * TRUE if we know where we are