forgotten MPX4100 sensor

This commit is contained in:
Andrey 2021-06-13 20:30:51 -04:00
parent b8a6c15881
commit 67f9e5a595
1 changed files with 4 additions and 2 deletions

View File

@ -113,7 +113,7 @@ float decodePressure(float voltage, air_pressure_sensor_config_s * mapConfig DEC
case MT_MAZDA_1_BAR: case MT_MAZDA_1_BAR:
return getDecoder(mapConfig->type)->getValue(voltage); return getDecoder(mapConfig->type)->getValue(voltage);
default: 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; return NAN;
} }
} }
@ -192,6 +192,8 @@ static FastInterpolation *getDecoder(air_pressure_sensor_type_e type) {
return &denso183; return &denso183;
case MT_MPX4250: case MT_MPX4250:
return &mpx4250; return &mpx4250;
case MT_MPX4100:
return &mpx4100;
case MT_MPX4250A: case MT_MPX4250A:
return &mpx4250A; return &mpx4250A;
case MT_HONDA3BAR: case MT_HONDA3BAR:
@ -213,7 +215,7 @@ static FastInterpolation *getDecoder(air_pressure_sensor_type_e type) {
case MT_BOSCH_2_5: case MT_BOSCH_2_5:
return &bosch2_5; return &bosch2_5;
default: 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; return &customMap;
} }
} }