avoid float -> int -> float

This commit is contained in:
Matthew Kennedy 2024-05-14 23:42:54 -07:00 committed by Andrey
parent 38d0cecaaa
commit d8c6fd3e85
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ static SensorType getSensorForBankIndex(size_t index) {
}
}
size_t computeStftBin(int rpm, float load, stft_s& cfg) {
size_t computeStftBin(float rpm, float load, stft_s& cfg) {
// Low RPM -> idle
if (idleDeadband.lt(rpm, cfg.maxIdleRegionRpm))
{

View File

@ -14,5 +14,5 @@ struct ClosedLoopFuelResult {
};
ClosedLoopFuelResult fuelClosedLoopCorrection();
size_t computeStftBin(int rpm, float load, stft_s& cfg);
size_t computeStftBin(float rpm, float load, stft_s& cfg);
bool shouldUpdateCorrection(SensorType sensor);