Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PINDA crash when probing nearby bed margins #314

Merged
merged 1 commit into from
Jun 20, 2021

Conversation

wavexx
Copy link
Collaborator

@wavexx wavexx commented Jun 20, 2021

Description

Clamp probing coordinates to be always inside the mesh.

This is not correct when probing far away from the bed (PINDA shouldn't trigger at all), but for now this will do.

Behaviour/ Breaking changes

None.

Have you tested the changes?

Tests included.

Linked issues:

Fixes #313

Clamp probing coordinates to be always inside the mesh.

This is not correct when probing far away from the bed (PINDA shouldn't
trigger at all), but for now this will do.

Fixes vintagepc#313
@codecov
Copy link

codecov bot commented Jun 20, 2021

Codecov Report

Merging #314 (082e75c) into master (b243dda) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #314   +/-   ##
=======================================
  Coverage   89.08%   89.08%           
=======================================
  Files         140      140           
  Lines        6659     6661    +2     
=======================================
+ Hits         5932     5934    +2     
  Misses        727      727           
Impacted Files Coverage Δ
parts/components/PINDA.cpp 94.11% <100.00%> (+0.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b243dda...082e75c. Read the comment docs.

@vintagepc vintagepc merged commit 7184194 into vintagepc:master Jun 20, 2021
@wavexx wavexx deleted the pinda_crash branch September 11, 2021 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Crash on PINDA when probing outside the bed range
2 participants