reducing magic constant

This commit is contained in:
rusefi 2023-06-12 20:07:48 -04:00
parent d396d0a77c
commit f3ee2fb9d0
3 changed files with 3 additions and 3 deletions

View File

@ -457,7 +457,7 @@ bool TunerStudio::handlePlainCommand(TsChannelBase* tsChannel, uint8_t command)
TunerStudio tsInstance;
static int tsProcessOne(TsChannelBase* tsChannel) {
validateStack("communication", ObdCode::STACK_USAGE_COMMUNICATION, 128);
validateStack("communication", ObdCode::STACK_USAGE_COMMUNICATION, EXPECTED_REMAINING_STACK);
if (!tsChannel->isReady()) {
chThdSleepMilliseconds(10);

View File

@ -283,7 +283,7 @@ private:
UNUSED(nowNt);
setPeriod(50 /* ms */);
validateStack("Bench", ObdCode::STACK_USAGE_BENCH, 128);
validateStack("Bench", ObdCode::STACK_USAGE_BENCH, EXPECTED_REMAINING_STACK);
// naive inter-thread communication - waiting for a flag
if (isBenchTestPending) {

View File

@ -84,7 +84,7 @@ private:
void PeriodicTask(efitick_t nowNt) override {
UNUSED(nowNt);
validateStack("MIL", ObdCode::STACK_USAGE_MIL, 128);
validateStack("MIL", ObdCode::STACK_USAGE_MIL, EXPECTED_REMAINING_STACK);
#if EFI_SHAFT_POSITION_INPUT
if (nowNt - engine->triggerCentral.triggerState.mostRecentSyncTime < MS2NT(500)) {
enginePins.checkEnginePin.setValue(1);