field name typo
This commit is contained in:
parent
cf6b9fb0be
commit
64892c5d06
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue