rusefi/unit_tests/tests/util/test_persistent_configurati...

21 lines
525 B
C++
Raw Normal View History

//
// Created by kifir on 11/5/24.
//
#include "pch.h"
#include "test_persistent_configuration.h"
TestPersistentConfiguration& TestPersistentConfiguration::getInstance() {
return instance;
}
void TestPersistentConfiguration::setIgnitionTable(const IgnitionTable& ignitions) {
for (int i = 0; i < IGN_LOAD_COUNT; i++) {
for (int j = 0; j < IGN_RPM_COUNT; j++) {
config->ignitionTable[i][j] = ignitions[i][j];
}
}
}
TestPersistentConfiguration TestPersistentConfiguration::instance;