From 2ce0bef9b95e3d291f1fcfac35a413c09bb4ef86 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 19 Oct 2020 22:44:44 -0400 Subject: [PATCH] refactoring --- firmware/controllers/actuators/gppwm/gppwm_channel.cpp | 2 +- firmware/controllers/actuators/gppwm/gppwm_channel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/actuators/gppwm/gppwm_channel.cpp b/firmware/controllers/actuators/gppwm/gppwm_channel.cpp index d975c5a789..b9de30124b 100644 --- a/firmware/controllers/actuators/gppwm/gppwm_channel.cpp +++ b/firmware/controllers/actuators/gppwm/gppwm_channel.cpp @@ -67,7 +67,7 @@ void GppwmChannel::init(bool usePwm, SimplePwm* pwm, OutputPin* outputPin, const m_config = config; } -float GppwmChannel::getOutput() const { +percent_t GppwmChannel::getOutput() const { expected loadAxisValue = readGppwmChannel(m_config->loadAxis PASS_ENGINE_PARAMETER_SUFFIX); // If we couldn't get load axis value, fall back on error value diff --git a/firmware/controllers/actuators/gppwm/gppwm_channel.h b/firmware/controllers/actuators/gppwm/gppwm_channel.h index 597015dd61..9499afb909 100644 --- a/firmware/controllers/actuators/gppwm/gppwm_channel.h +++ b/firmware/controllers/actuators/gppwm/gppwm_channel.h @@ -12,7 +12,7 @@ public: void init(bool usePwm, SimplePwm* pwm, OutputPin* outputPin, const ValueProvider3D* table, const gppwm_channel* config); void update(); - float getOutput() const; + percent_t getOutput() const; void setOutput(float result); private: