need better higher-level API :(
This commit is contained in:
parent
bb7cc14d27
commit
b9f0f2c592
|
@ -266,13 +266,12 @@ void initMapDecoder(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
applyConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
applyConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
//engine->configurationListeners.registerCallback(applyConfiguration);
|
//engine->configurationListeners.registerCallback(applyConfiguration);
|
||||||
|
|
||||||
#if HAL_USE_ICU
|
|
||||||
if (engineConfiguration->hasFrequencyReportingMapSensor) {
|
if (engineConfiguration->hasFrequencyReportingMapSensor) {
|
||||||
|
#if HAL_USE_ICU
|
||||||
digital_input_s* digitalMapInput = addWaveAnalyzerDriver("map freq", CONFIGB(frequencyReportingMapInputPin));
|
digital_input_s* digitalMapInput = addWaveAnalyzerDriver("map freq", CONFIGB(frequencyReportingMapInputPin));
|
||||||
startInputDriver("MAP", digitalMapInput, true);
|
startInputDriver("MAP", digitalMapInput, true);
|
||||||
|
|
||||||
digitalMapInput->widthListeners.registerCallback((VoidInt) digitalMapWidthCallback, NULL);
|
digitalMapInput->widthListeners.registerCallback((VoidInt) digitalMapWidthCallback, NULL);
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
efiExtiEnablePin(
|
efiExtiEnablePin(
|
||||||
|
@ -284,6 +283,7 @@ void initMapDecoder(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
);
|
);
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
#endif /* HAL_USE_ICU */
|
#endif /* HAL_USE_ICU */
|
||||||
|
}
|
||||||
|
|
||||||
if (CONFIG(useFixedBaroCorrFromMap)) {
|
if (CONFIG(useFixedBaroCorrFromMap)) {
|
||||||
// Read initial MAP sensor value and store it for Baro correction.
|
// Read initial MAP sensor value and store it for Baro correction.
|
||||||
|
|
Loading…
Reference in New Issue