random code inspired by Ola

This commit is contained in:
rusefi 2020-03-24 19:50:04 -04:00
parent 957b0e19c1
commit 1955af0b6c
3 changed files with 10 additions and 8 deletions

View File

@ -23,7 +23,7 @@
#if defined(HAS_OS_ACCESS)
#error "Unexpected OS ACCESS HERE"
#endif
#endif /* HAS_OS_ACCESS */
EXTERN_ENGINE
;

View File

@ -37,12 +37,12 @@
#include "idle_thread.h"
#include "periodic_thread_controller.h"
#include "tps.h"
#include "cj125.h"
#include "malfunction_central.h"
#if EFI_PROD_CODE
#include "cj125.h"
#include "rusefi.h"
#include "mpu_util.h"
#include "malfunction_central.h"
#endif /* EFI_PROD_CODE */
#if (BOARD_TLE8888_COUNT > 0)
@ -312,9 +312,11 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) {
// cmd_test_idle_valve
#if EFI_IDLE_CONTROL
startIdleBench();
#endif
#endif /* EFI_IDLE_CONTROL */
} else if (subsystem == 0x18) {
#if EFI_CJ125
cjCalibrate();
#endif /* EFI_CJ125 */
} else if (subsystem == 0x20 && index == 0x3456) {
// call to pit
setCallFromPitStop(30000);

View File

@ -146,14 +146,14 @@ TEST(util, histogram) {
static void testMalfunctionCentralRemoveNonExistent() {
print("******************************************* testMalfunctionCentralRemoveNonExistent\r\n");
initMalfunctionCentral();
clearWarnings();
// this should not crash
removeError(OBD_Engine_Coolant_Temperature_Circuit_Malfunction);
}
static void testMalfunctionCentralSameElementAgain() {
initMalfunctionCentral();
clearWarnings();
print("******************************************* testMalfunctionCentralSameElementAgain\r\n");
error_codes_set_s localCopy;
@ -164,7 +164,7 @@ static void testMalfunctionCentralSameElementAgain() {
}
static void testMalfunctionCentralRemoveFirstElement() {
initMalfunctionCentral();
clearWarnings();
print("******************************************* testMalfunctionCentralRemoveFirstElement\r\n");
error_codes_set_s localCopy;
@ -190,7 +190,7 @@ TEST(misc, testMalfunctionCentral) {
testMalfunctionCentralRemoveFirstElement();
print("******************************************* testMalfunctionCentral\r\n");
initMalfunctionCentral();
clearWarnings();
error_codes_set_s localCopy;