diff options
author | luz paz <luzpaz@users.noreply.github.com> | 2021-09-07 18:33:54 +0300 |
---|---|---|
committer | luz paz <luzpaz@users.noreply.github.com> | 2021-09-07 18:33:54 +0300 |
commit | d68f375e386049878de69eb0b33aacc3f40cb344 (patch) | |
tree | 7c31e3a32ac8b9d2c7328c6de5f300eb4eb15182 /scripts | |
parent | 7eeae4db87f3f6e860c2bc4faab79af50c59e484 (diff) |
Fix various typos
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check_gcode_buffer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check_gcode_buffer.py b/scripts/check_gcode_buffer.py index ed093089e4..31ce5a046d 100755 --- a/scripts/check_gcode_buffer.py +++ b/scripts/check_gcode_buffer.py @@ -69,9 +69,9 @@ def calc_distance(pos1, pos2): def calc_acceleration_distance(init_speed: float, target_speed: float, acceleration: float) -> float: """Given the initial speed, the target speed, and the acceleration - - calculate the distance that's neede for the acceleration to finish. + calculate the distance that's needed for the acceleration to finish. """ + if acceleration == 0: return 0.0 return (target_speed ** 2 - init_speed ** 2) / (2 * acceleration) |