field name typo

This commit is contained in:
rusefi 2019-01-12 14:19:21 -05:00
parent cf6b9fb0be
commit 64892c5d06
2 changed files with 5 additions and 5 deletions

View File

@ -145,7 +145,7 @@ public:
int lastErrorCode;
efitimesec_t timeOfPreviousWarning;
// todo: we need a way to post multiple recent warnings into TS
cyclic_buffer<int, 8> recentWarninig;
cyclic_buffer<int, 8> recentWarning;
};
class EngineState {

View File

@ -44,15 +44,15 @@ void WarningCodeState::clear() {
warningCounter = 0;
lastErrorCode = 0;
timeOfPreviousWarning = -10;
recentWarninig.clear();
recentWarning.clear();
}
void WarningCodeState::addWarningCode(obd_code_e code) {
warningCounter++;
lastErrorCode = code;
//todo: add cyclic_buffer.contains method
// if (!recentWarninig contains code)
recentWarninig.add((int)code);
if (!recentWarning.contains(code)) {
recentWarning.add((int)code);
}
}
/**