mirror of https://github.com/rusefi/rusefi-1.git
This commit is contained in:
parent
7910c32893
commit
4901a69d17
|
@ -1009,7 +1009,7 @@ void initElectronicThrottle(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
|
|
||||||
void setEtbIdlePosition(percent_t pos DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
void setEtbIdlePosition(percent_t pos DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
if (!Sensor::hasSensor(SensorType::AcceleratorPedal)) {
|
if (!Sensor::hasSensor(SensorType::AcceleratorPedal)) {
|
||||||
firmwareError(CUSTOM_NO_ETB_FOR_IDLE, "No ETB to use for idle");
|
firmwareError(CUSTOM_NO_ETB_FOR_IDLE, "No PPS to use for idle");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ public:
|
||||||
// this should be field lookup and simple math.
|
// this should be field lookup and simple math.
|
||||||
virtual SensorResult get() const = 0;
|
virtual SensorResult get() const = 0;
|
||||||
|
|
||||||
// Retrieve whether the sensor is present. Some sensors may be registered but not present, ie if inintialization failed.
|
// Retrieve whether the sensor is present. Some sensors may be registered but not present, i.e. if initialization failed.
|
||||||
virtual bool hasSensor() const {
|
virtual bool hasSensor() const {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue