-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[bugfix 1.1.x] Fix G2/G3 so that slicer rounding error does not require impossible arc #15546
[bugfix 1.1.x] Fix G2/G3 so that slicer rounding error does not require impossible arc #15546
Conversation
Thank You Ed! You aren't going to be able to claim you don't know C if you keep using ternary operators.... |
@Roxy-3D |
Personally... I really dislike ternary operators. But they do have their place. For the Marlin coding standards, what you have coded is good! But for me, personally, I would prefer looking at something more like:
|
I'd vote for |
I'm not criticizing your code!!! It is fully compliant with the Marlin code base! I'm just expressing a personal preference. I find a multiple line if-then-else easier to read. |
I'm not taking it as criticism! As I said if the expressions were not so simple I'd agree with you. |
@Roxy-3D
or even but I didn't think it appropriate to change merely on the grounds of clarity (to me). Who knows, the XOR trick could be a common idiom that I was unaware of. |
No worries @edwilliams16 — Whatever idiom works best for you. The important thing is that it changes the right bits in the right way at the right time, and the code is not intentionally obfuscatory. |
* MarlinFirmware/1.1.x: (133 commits) Fix Z position after ABL bilinear G29 with fade (MarlinFirmware#17174) Change DUMMY_PID_VALUE to NAN (MarlinFirmware#17079) Disable integration testing Enable DUAL_NOZZLE_DUPLICATION_MODE (MarlinFirmware#16436) [1.1.x] Polish language UTF8 (MarlinFirmware#16141) Links for the "New Issue" page Add Korean language (MarlinFirmware#15918) [1.1.x] MKS_GEN_L_V2 controller (MarlinFirmware#15805) Update bug_report.md [1.1.x] Fix autostart w/out SD_DETECT_PIN (MarlinFirmware#15667) [1.1.x] RAMPS + Viki1 LCD compatibility (MarlinFirmware#15736) [1.1.x] Fix compiler warning (MarlinFirmware#15642) [1.1.x] Fix for G2/G3 rounding error (MarlinFirmware#15546) Let MINIPANEL use SW SPI if needed (MarlinFirmware#15246) Fix BLTouch debugging (MarlinFirmware#15232) Fix Creality bed thermistor Fix PT-BR strings (MarlinFirmware#15023) Fix #else extra tokens (MarlinFirmware#15013) [1.1.x] Autobuild formatting (MarlinFirmware#14858) [1.1.x] BLTouch 3.0 - 3.1 (MarlinFirmware#14839) ...
Requirements
Description
This is a back port of a fix to bugfix-2.0.x
It fixes the problem caused by slicer rounding error creating a G2/G3 request for a geometrically impossible arc whose diameter would be less than the distance to the destination point.
Benefits
Fixes #14745
Related Issues