Make HOTEND_LOOP more consistent, let compiler optimize it
This commit is contained in:
parent
e1702816f6
commit
e44294bb4d
4 changed files with 6 additions and 17 deletions
|
|
@ -40,12 +40,12 @@
|
|||
#define SOFT_PWM_SCALE 0
|
||||
#endif
|
||||
|
||||
#define HOTEND_LOOP() for (int8_t e = 0; e < HOTENDS; e++)
|
||||
|
||||
#if HOTENDS == 1
|
||||
#define HOTEND_LOOP() const int8_t e = 0;
|
||||
#define HOTEND_INDEX 0
|
||||
#define EXTRUDER_IDX 0
|
||||
#else
|
||||
#define HOTEND_LOOP() for (int8_t e = 0; e < HOTENDS; e++)
|
||||
#define HOTEND_INDEX e
|
||||
#define EXTRUDER_IDX active_extruder
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue