mirror of https://github.com/rusefi/wideband.git
cycle
This commit is contained in:
parent
d1c878bf13
commit
2628d1d05c
|
@ -282,9 +282,9 @@ void HeaterController::Update(const ISampler& sampler, HeaterAllow heaterAllowSt
|
|||
float duty = voltageRatio * voltageRatio;
|
||||
|
||||
#ifdef HEATER_MAX_DUTY
|
||||
s.cycle++;
|
||||
cycle++;
|
||||
// limit PWM each 10th cycle (2 time per second) to measure heater supply voltage throuth "Heater-"
|
||||
if ((s.cycle % 10) == 0) {
|
||||
if ((cycle % 10) == 0) {
|
||||
if (duty > HEATER_MAX_DUTY) {
|
||||
duty = HEATER_MAX_DUTY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue