Skip to content

Commit

Permalink
increased StepperTask stack size to avoid stackoverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovehotcakes committed Jun 1, 2024
1 parent d137785 commit 06a1259
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/scripts/modify_fastaccelstepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,19 @@ def modify_fastaccelstepper_cpp():
output.write(result)


def modify_stpperisr_esp32_cpp():
result = ""
with open("./.pio/libdeps/esp32dev/FastAccelStepper/src/StepperISR_esp32.cpp", 'r') as file:
for line in file:
if line == "#define STACK_SIZE 1000\n":
result += "#define STACK_SIZE 2000\n"
else:
result += line

with open("./.pio/libdeps/esp32dev/FastAccelStepper/src/StepperISR_esp32.cpp", 'w') as output:
output.write(result)


modify_fastaccelstepper_h()
modify_fastaccelstepper_cpp()
modify_fastaccelstepper_cpp()
modify_stpperisr_esp32_cpp()

0 comments on commit 06a1259

Please sign in to comment.