mirror of https://github.com/rusefi/rusefi.git
reducing magic constant
This commit is contained in:
parent
d396d0a77c
commit
f3ee2fb9d0
|
@ -457,7 +457,7 @@ bool TunerStudio::handlePlainCommand(TsChannelBase* tsChannel, uint8_t command)
|
||||||
TunerStudio tsInstance;
|
TunerStudio tsInstance;
|
||||||
|
|
||||||
static int tsProcessOne(TsChannelBase* tsChannel) {
|
static int tsProcessOne(TsChannelBase* tsChannel) {
|
||||||
validateStack("communication", ObdCode::STACK_USAGE_COMMUNICATION, 128);
|
validateStack("communication", ObdCode::STACK_USAGE_COMMUNICATION, EXPECTED_REMAINING_STACK);
|
||||||
|
|
||||||
if (!tsChannel->isReady()) {
|
if (!tsChannel->isReady()) {
|
||||||
chThdSleepMilliseconds(10);
|
chThdSleepMilliseconds(10);
|
||||||
|
|
|
@ -283,7 +283,7 @@ private:
|
||||||
UNUSED(nowNt);
|
UNUSED(nowNt);
|
||||||
setPeriod(50 /* ms */);
|
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
|
// naive inter-thread communication - waiting for a flag
|
||||||
if (isBenchTestPending) {
|
if (isBenchTestPending) {
|
||||||
|
|
|
@ -84,7 +84,7 @@ private:
|
||||||
void PeriodicTask(efitick_t nowNt) override {
|
void PeriodicTask(efitick_t nowNt) override {
|
||||||
UNUSED(nowNt);
|
UNUSED(nowNt);
|
||||||
|
|
||||||
validateStack("MIL", ObdCode::STACK_USAGE_MIL, 128);
|
validateStack("MIL", ObdCode::STACK_USAGE_MIL, EXPECTED_REMAINING_STACK);
|
||||||
#if EFI_SHAFT_POSITION_INPUT
|
#if EFI_SHAFT_POSITION_INPUT
|
||||||
if (nowNt - engine->triggerCentral.triggerState.mostRecentSyncTime < MS2NT(500)) {
|
if (nowNt - engine->triggerCentral.triggerState.mostRecentSyncTime < MS2NT(500)) {
|
||||||
enginePins.checkEnginePin.setValue(1);
|
enginePins.checkEnginePin.setValue(1);
|
||||||
|
|
Loading…
Reference in New Issue