proteus F7 hard fault on "enable self stimulation" #5354

i feel lucky so I make random changes
This commit is contained in:
rusefillc 2023-06-25 02:21:38 -04:00
parent 256e25a452
commit c20963d302
3 changed files with 3 additions and 0 deletions

View File

@ -169,6 +169,7 @@ __attribute__((weak)) void boardOnConfigurationChange(engine_configuration_s* /*
* See preCalculate which is invoked BOTH on start and configuration change * See preCalculate which is invoked BOTH on start and configuration change
*/ */
void incrementGlobalConfigurationVersion(const char * msg) { void incrementGlobalConfigurationVersion(const char * msg) {
assertStackVoid("increment", ObdCode::STACK_USAGE_MISC, EXPECTED_REMAINING_STACK);
if (!hasRememberedConfiguration) { if (!hasRememberedConfiguration) {
firmwareError(ObdCode::OBD_PCM_Processor_Fault, "too early to invoke incrementGlobalConfigurationVersion %s", msg); firmwareError(ObdCode::OBD_PCM_Processor_Fault, "too early to invoke incrementGlobalConfigurationVersion %s", msg);
} }

View File

@ -126,6 +126,7 @@ static bool hasInitTriggerEmulator = false;
# if !EFI_UNIT_TEST # if !EFI_UNIT_TEST
static void emulatorApplyPinState(int stateIndex, PwmConfig *state) /* pwm_gen_callback */ { static void emulatorApplyPinState(int stateIndex, PwmConfig *state) /* pwm_gen_callback */ {
assertStackVoid("emulator", ObdCode::STACK_USAGE_MISC, EXPECTED_REMAINING_STACK);
if (engine->triggerCentral.directSelfStimulation) { if (engine->triggerCentral.directSelfStimulation) {
/** /**
* this callback would invoke the input signal handlers directly * this callback would invoke the input signal handlers directly

View File

@ -505,6 +505,7 @@ static int handleConsoleLineInternal(const char *commandLine, int lineLength) {
void handleConsoleLine(char *line) { void handleConsoleLine(char *line) {
if (line == NULL) if (line == NULL)
return; // error detected return; // error detected
assertStackVoid("console", ObdCode::STACK_USAGE_MISC, EXPECTED_REMAINING_STACK);
int lineLength = strlen(line); int lineLength = strlen(line);
if (lineLength > MAX_CMD_LINE_LENGTH) { if (lineLength > MAX_CMD_LINE_LENGTH) {