mirror of https://github.com/rusefi/rusefi-1.git
Trigger: Question: something strange trigger errors #662
hopefully CUSTOM_ERR_START_STACK fix
This commit is contained in:
parent
2bbc5feef4
commit
4b72599e2f
|
@ -375,6 +375,7 @@ public:
|
||||||
bool isAlternatorControlEnabled;
|
bool isAlternatorControlEnabled;
|
||||||
|
|
||||||
bool isCltBroken;
|
bool isCltBroken;
|
||||||
|
bool slowCallBackWasInvoked = false;
|
||||||
|
|
||||||
|
|
||||||
// floatms_t callToPitEndTime;
|
// floatms_t callToPitEndTime;
|
||||||
|
|
|
@ -120,6 +120,9 @@ void EngineState::updateSlowSensors(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EngineState::periodicFastCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
void EngineState::periodicFastCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
|
if (!engine->slowCallBackWasInvoked) {
|
||||||
|
warning(CUSTOM_ERR_6696, "Slow not invoked yet");
|
||||||
|
}
|
||||||
efitick_t nowNt = getTimeNowNt();
|
efitick_t nowNt = getTimeNowNt();
|
||||||
if (ENGINE(rpmCalculator).isCranking(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
if (ENGINE(rpmCalculator).isCranking(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||||
crankingTime = nowNt;
|
crankingTime = nowNt;
|
||||||
|
|
|
@ -291,7 +291,6 @@ static void invokePerSecond(void) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void periodicSlowCallback(Engine *engine) {
|
static void periodicSlowCallback(Engine *engine) {
|
||||||
efiAssertVoid(CUSTOM_ERR_6661, getRemainingStack(chThdGetSelfX()) > 64, "lowStckOnEv");
|
efiAssertVoid(CUSTOM_ERR_6661, getRemainingStack(chThdGetSelfX()) > 64, "lowStckOnEv");
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
|
@ -339,11 +338,12 @@ static void periodicSlowCallback(Engine *engine) {
|
||||||
|
|
||||||
cylinderCleanupControl(engine);
|
cylinderCleanupControl(engine);
|
||||||
|
|
||||||
|
engine->slowCallBackWasInvoked = TRUE;
|
||||||
scheduleNextSlowInvocation();
|
scheduleNextSlowInvocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
void initPeriodicEvents(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
void initPeriodicEvents(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
scheduleNextSlowInvocation();
|
periodicSlowCallback(engine);
|
||||||
periodicFastCallback(PASS_ENGINE_PARAMETER_SIGNATURE);
|
periodicFastCallback(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ GTEST_API_ int main(int argc, char **argv) {
|
||||||
// printConvertedTable();
|
// printConvertedTable();
|
||||||
testing::InitGoogleTest(&argc, argv);
|
testing::InitGoogleTest(&argc, argv);
|
||||||
// uncomment if you only want to run selected tests
|
// uncomment if you only want to run selected tests
|
||||||
//::testing::GTEST_FLAG(filter) = "hip*";
|
//::testing::GTEST_FLAG(filter) = "*testFasterEngineSpinningUp*";
|
||||||
return RUN_ALL_TESTS();
|
return RUN_ALL_TESTS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,8 @@ extern int timeNowUs;
|
||||||
TEST(sensors, testFasterEngineSpinningUp) {
|
TEST(sensors, testFasterEngineSpinningUp) {
|
||||||
printf("*************************************************** testFasterEngineSpinningUp\r\n");
|
printf("*************************************************** testFasterEngineSpinningUp\r\n");
|
||||||
|
|
||||||
|
timeNowUs = 0;
|
||||||
|
|
||||||
EngineTestHelper eth(TEST_ENGINE);
|
EngineTestHelper eth(TEST_ENGINE);
|
||||||
EXPAND_EngineTestHelper
|
EXPAND_EngineTestHelper
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue