Cooling buffer: fix division by zero error & ignore zero-length segments #14349
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
$ make test
Running tests...
Test project /home/k/Downloads/src/Prusa/build
Start 1: libseqarrange_tests
1/7 Test #1: libseqarrange_tests .............. Passed 51.29 sec
Start 2: arrange_tests
2/7 Test #2: arrange_tests .................... Passed 3.13 sec
Start 3: thumbnails_tests
3/7 Test #3: thumbnails_tests ................. Passed 0.01 sec
Start 4: libslic3r_tests
4/7 Test #4: libslic3r_tests .................. Passed 7.48 sec
Start 5: fff_print_tests
5/7 Test #5: fff_print_tests .................. Passed 32.84 sec
Start 6: sla_print_tests
6/7 Test #6: sla_print_tests .................. Passed 32.43 sec
Start 7: slic3rutils_tests
7/7 Test #7: slic3rutils_tests ................ Passed 3.32 sec
100% tests passed, 0 tests failed out of 7