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: