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) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@ public:
|
|||
// this should be field lookup and simple math.
|
||||
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 {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue