From 67f9e5a5959d94b35454c515e28dd4b46671ca71 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 13 Jun 2021 20:30:51 -0400 Subject: [PATCH] forgotten MPX4100 sensor --- firmware/controllers/sensors/map.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/sensors/map.cpp b/firmware/controllers/sensors/map.cpp index f5c28b8e99..2cff89e937 100644 --- a/firmware/controllers/sensors/map.cpp +++ b/firmware/controllers/sensors/map.cpp @@ -113,7 +113,7 @@ float decodePressure(float voltage, air_pressure_sensor_config_s * mapConfig DEC case MT_MAZDA_1_BAR: return getDecoder(mapConfig->type)->getValue(voltage); default: - firmwareError(CUSTOM_ERR_MAP_TYPE, "Unknown MAP type: p %d", mapConfig->type); + firmwareError(CUSTOM_ERR_MAP_TYPE, "Unknown MAP type: pressure %d", mapConfig->type); return NAN; } } @@ -192,6 +192,8 @@ static FastInterpolation *getDecoder(air_pressure_sensor_type_e type) { return &denso183; case MT_MPX4250: return &mpx4250; + case MT_MPX4100: + return &mpx4100; case MT_MPX4250A: return &mpx4250A; case MT_HONDA3BAR: @@ -213,7 +215,7 @@ static FastInterpolation *getDecoder(air_pressure_sensor_type_e type) { case MT_BOSCH_2_5: return &bosch2_5; default: - firmwareError(CUSTOM_ERR_MAP_TYPE, "Unknown MAP type: d %d", type); + firmwareError(CUSTOM_ERR_MAP_TYPE, "Unknown MAP type: decoder %d", type); return &customMap; } }