MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
15.94k stars 19.08k forks source link

use TERN0 or TERN1 instead of TERN(option, A, 0|1) #27036

Closed ellensp closed 3 days ago

ellensp commented 2 weeks ago

Description

Code tidy up

Requirements

None

Benefits

More concise code

thinkyhead commented 3 days ago

It seems a good idea to keep the TERN(a, b) where b refers to some "meaningful" value, then just replace the ones where the 1 / 0 is "optional" or refers to an "all or none" kind of situation. Semantics, amirite?