Skip to content

Commit

Permalink
dead error code
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jul 22, 2024
1 parent 9f56032 commit d19db63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion firmware/controllers/algo/obd_error_codes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,7 @@ enum class ObdCode : uint16_t {
CUSTOM_ERR_6728 = 6728,
CUSTOM_ARTIFICIAL_MISFIRE = 6729,

CUSTOM_INSTANT_MAP_DECODING = 6899,
CUSTOM_ERR_6899 = 6899,
STACK_USAGE_COMMUNICATION = 6900,
STACK_USAGE_MIL = 6901,
// not used CUSTOM_6902 = 6902,
Expand Down
5 changes: 0 additions & 5 deletions firmware/controllers/engine_cycle/map_averaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ void mapAveragingAdcCallback(float instantVoltage) {

SensorResult mapResult = getMapAvg(currentMapAverager).submit(instantVoltage);

if (!mapResult) {
// hopefully this warning is not too much CPU consumption for fast ADC callback
warning(ObdCode::CUSTOM_INSTANT_MAP_DECODING, "Invalid MAP at %f", instantVoltage);
}

float instantMap = mapResult.value_or(0);
#if EFI_TUNER_STUDIO
engine->outputChannels.instantMAPValue = instantMap;
Expand Down

0 comments on commit d19db63

Please sign in to comment.