refactoring

This commit is contained in:
rusefi 2020-10-19 22:44:44 -04:00
parent e0a5c3dc12
commit 2ce0bef9b9
2 changed files with 2 additions and 2 deletions

View File

@ -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<float> loadAxisValue = readGppwmChannel(m_config->loadAxis PASS_ENGINE_PARAMETER_SUFFIX);
// If we couldn't get load axis value, fall back on error value

View File

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