Explorar el Código

General cleanup, use _BV

Scott Lahteine hace 3 años
padre
commit
b41f41589a

+ 1
- 1
Marlin/src/HAL/DUE/fastio.h Ver fichero

50
 #define PWM_PIN(P)              WITHIN(P, 2, 13)
50
 #define PWM_PIN(P)              WITHIN(P, 2, 13)
51
 
51
 
52
 #ifndef MASK
52
 #ifndef MASK
53
-  #define MASK(PIN) (1 << PIN)
53
+  #define MASK(PIN) _BV(PIN)
54
 #endif
54
 #endif
55
 
55
 
56
 /**
56
 /**

+ 1
- 1
Marlin/src/HAL/DUE/timers.cpp Ver fichero

121
 
121
 
122
 // missing from CMSIS: Check if interrupt is enabled or not
122
 // missing from CMSIS: Check if interrupt is enabled or not
123
 static bool NVIC_GetEnabledIRQ(IRQn_Type IRQn) {
123
 static bool NVIC_GetEnabledIRQ(IRQn_Type IRQn) {
124
-  return (NVIC->ISER[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F))) != 0;
124
+  return TEST(NVIC->ISER[uint32_t(IRQn) >> 5], uint32_t(IRQn) & 0x1F);
125
 }
125
 }
126
 
126
 
127
 bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {
127
 bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {

+ 1
- 1
Marlin/src/HAL/ESP32/Servo.h Ver fichero

30
                    MAX_PULSE_WIDTH = 2400,  // Longest pulse sent to a servo
30
                    MAX_PULSE_WIDTH = 2400,  // Longest pulse sent to a servo
31
                    TAU_MSEC = 20,
31
                    TAU_MSEC = 20,
32
                    TAU_USEC = (TAU_MSEC * 1000),
32
                    TAU_USEC = (TAU_MSEC * 1000),
33
-                   MAX_COMPARE = ((1 << 16) - 1), // 65535
33
+                   MAX_COMPARE = _BV(16) - 1, // 65535
34
                    CHANNEL_MAX_NUM = 16;
34
                    CHANNEL_MAX_NUM = 16;
35
 
35
 
36
 public:
36
 public:

+ 1
- 1
Marlin/src/HAL/LPC1768/eeprom_flash.cpp Ver fichero

25
  * Emulate EEPROM storage using Flash Memory
25
  * Emulate EEPROM storage using Flash Memory
26
  *
26
  *
27
  * Use a single 32K flash sector to store EEPROM data. To reduce the
27
  * Use a single 32K flash sector to store EEPROM data. To reduce the
28
- * number of erase operations a simple "levelling" scheme is used that
28
+ * number of erase operations a simple "leveling" scheme is used that
29
  * maintains a number of EEPROM "slots" within the larger flash sector.
29
  * maintains a number of EEPROM "slots" within the larger flash sector.
30
  * Each slot is used in turn and the entire sector is only erased when all
30
  * Each slot is used in turn and the entire sector is only erased when all
31
  * slots have been used.
31
  * slots have been used.

+ 1
- 1
Marlin/src/HAL/LPC1768/timers.h Ver fichero

152
 
152
 
153
 // This function is missing from CMSIS
153
 // This function is missing from CMSIS
154
 FORCE_INLINE static bool NVIC_GetEnableIRQ(IRQn_Type IRQn) {
154
 FORCE_INLINE static bool NVIC_GetEnableIRQ(IRQn_Type IRQn) {
155
-  return (NVIC->ISER[((uint32_t)IRQn) >> 5] & (1 << ((uint32_t)IRQn) & 0x1F)) != 0;
155
+  return TEST(NVIC->ISER[uint32_t(IRQn) >> 5], uint32_t(IRQn) & 0x1F);
156
 }
156
 }
157
 
157
 
158
 FORCE_INLINE static bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {
158
 FORCE_INLINE static bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {

+ 1
- 1
Marlin/src/HAL/SAMD51/fastio.h Ver fichero

31
  */
31
  */
32
 
32
 
33
 #ifndef MASK
33
 #ifndef MASK
34
-  #define MASK(PIN) (1 << PIN)
34
+  #define MASK(PIN) _BV(PIN)
35
 #endif
35
 #endif
36
 
36
 
37
 /**
37
 /**

+ 1
- 1
Marlin/src/HAL/SAMD51/timers.cpp Ver fichero

157
 
157
 
158
 // missing from CMSIS: Check if interrupt is enabled or not
158
 // missing from CMSIS: Check if interrupt is enabled or not
159
 static bool NVIC_GetEnabledIRQ(IRQn_Type IRQn) {
159
 static bool NVIC_GetEnabledIRQ(IRQn_Type IRQn) {
160
-  return (NVIC->ISER[(uint32_t)(IRQn) >> 5] & (1 << ((uint32_t)(IRQn) & 0x1F))) != 0;
160
+  return TEST(NVIC->ISER[uint32_t(IRQn) >> 5], uint32_t(IRQn) & 0x1F);
161
 }
161
 }
162
 
162
 
163
 bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {
163
 bool HAL_timer_interrupt_enabled(const uint8_t timer_num) {

+ 1
- 1
Marlin/src/HAL/STM32F1/Servo.cpp Ver fichero

45
  *
45
  *
46
  * This uses the smallest prescaler that allows an overflow < 2^16.
46
  * This uses the smallest prescaler that allows an overflow < 2^16.
47
  */
47
  */
48
-#define MAX_OVERFLOW    UINT16_MAX //((1 << 16) - 1)
48
+#define MAX_OVERFLOW    UINT16_MAX // _BV(16) - 1
49
 #define CYC_MSEC        (1000 * CYCLES_PER_MICROSECOND)
49
 #define CYC_MSEC        (1000 * CYCLES_PER_MICROSECOND)
50
 #define TAU_MSEC        20
50
 #define TAU_MSEC        20
51
 #define TAU_USEC        (TAU_MSEC * 1000)
51
 #define TAU_USEC        (TAU_MSEC * 1000)

+ 1
- 1
Marlin/src/HAL/TEENSY31_32/fastio.h Ver fichero

28
  */
28
  */
29
 
29
 
30
 #ifndef MASK
30
 #ifndef MASK
31
-  #define MASK(PIN) (1 << PIN)
31
+  #define MASK(PIN) _BV(PIN)
32
 #endif
32
 #endif
33
 
33
 
34
 #define GPIO_BITBAND_ADDR(reg, bit) (((uint32_t)&(reg) - 0x40000000) * 32 + (bit) * 4 + 0x42000000)
34
 #define GPIO_BITBAND_ADDR(reg, bit) (((uint32_t)&(reg) - 0x40000000) * 32 + (bit) * 4 + 0x42000000)

+ 1
- 1
Marlin/src/HAL/TEENSY35_36/fastio.h Ver fichero

28
  */
28
  */
29
 
29
 
30
 #ifndef MASK
30
 #ifndef MASK
31
-  #define MASK(PIN) (1 << PIN)
31
+  #define MASK(PIN) _BV(PIN)
32
 #endif
32
 #endif
33
 
33
 
34
 #define GPIO_BITBAND_ADDR(reg, bit) (((uint32_t)&(reg) - 0x40000000) * 32 + (bit) * 4 + 0x42000000)
34
 #define GPIO_BITBAND_ADDR(reg, bit) (((uint32_t)&(reg) - 0x40000000) * 32 + (bit) * 4 + 0x42000000)

+ 6
- 8
Marlin/src/HAL/shared/Marduino.h Ver fichero

28
 #undef DISABLED       // Redefined by ESP32
28
 #undef DISABLED       // Redefined by ESP32
29
 #undef M_PI           // Redefined by all
29
 #undef M_PI           // Redefined by all
30
 #undef _BV            // Redefined by some
30
 #undef _BV            // Redefined by some
31
-#undef sq             // Redefined by teensy3/wiring.h
32
 #undef SBI            // Redefined by arduino/const_functions.h
31
 #undef SBI            // Redefined by arduino/const_functions.h
33
 #undef CBI            // Redefined by arduino/const_functions.h
32
 #undef CBI            // Redefined by arduino/const_functions.h
33
+#undef sq             // Redefined by teensy3/wiring.h
34
 #undef UNUSED         // Redefined by stm32f4xx_hal_def.h
34
 #undef UNUSED         // Redefined by stm32f4xx_hal_def.h
35
 
35
 
36
 #include <Arduino.h>  // NOTE: If included earlier then this line is a NOOP
36
 #include <Arduino.h>  // NOTE: If included earlier then this line is a NOOP
40
 
40
 
41
 #undef _BV
41
 #undef _BV
42
 #define _BV(b) (1UL << (b))
42
 #define _BV(b) (1UL << (b))
43
-
44
-#undef sq
45
-#define sq(x) ((x)*(x))
46
-
47
 #ifndef SBI
43
 #ifndef SBI
48
-  #define SBI(A,B) (A |= (1 << (B)))
44
+  #define SBI(A,B) (A |= _BV(B))
49
 #endif
45
 #endif
50
-
51
 #ifndef CBI
46
 #ifndef CBI
52
-  #define CBI(A,B) (A &= ~(1 << (B)))
47
+  #define CBI(A,B) (A &= ~_BV(B))
53
 #endif
48
 #endif
54
 
49
 
50
+#undef sq
51
+#define sq(x) ((x)*(x))
52
+
55
 #ifndef __AVR__
53
 #ifndef __AVR__
56
   #ifndef strchr_P // Some platforms define a macro (DUE, teensy35)
54
   #ifndef strchr_P // Some platforms define a macro (DUE, teensy35)
57
     inline const char* strchr_P(const char *s, int c) { return strchr(s,c); }
55
     inline const char* strchr_P(const char *s, int c) { return strchr(s,c); }

+ 29
- 40
Marlin/src/HAL/shared/backtrace/unwarmbytab.cpp Ver fichero

128
  * Execute unwinding instructions
128
  * Execute unwinding instructions
129
  */
129
  */
130
 static UnwResult UnwTabExecuteInstructions(const UnwindCallbacks *cb, UnwTabState *ucb) {
130
 static UnwResult UnwTabExecuteInstructions(const UnwindCallbacks *cb, UnwTabState *ucb) {
131
-
132
   int instruction;
131
   int instruction;
133
-  uint32_t mask;
134
-  uint32_t reg;
135
-  uint32_t vsp;
132
+  uint32_t mask, reg, vsp;
136
 
133
 
137
   /* Consume all instruction byte */
134
   /* Consume all instruction byte */
138
   while ((instruction = UnwTabGetNextInstruction(cb, ucb)) != -1) {
135
   while ((instruction = UnwTabGetNextInstruction(cb, ucb)) != -1) {
140
     if ((instruction & 0xC0) == 0x00) { // ARM_EXIDX_CMD_DATA_POP
137
     if ((instruction & 0xC0) == 0x00) { // ARM_EXIDX_CMD_DATA_POP
141
       /* vsp = vsp + (xxxxxx << 2) + 4 */
138
       /* vsp = vsp + (xxxxxx << 2) + 4 */
142
       ucb->vrs[13] += ((instruction & 0x3F) << 2) + 4;
139
       ucb->vrs[13] += ((instruction & 0x3F) << 2) + 4;
143
-    } else
144
-    if ((instruction & 0xC0) == 0x40) { // ARM_EXIDX_CMD_DATA_PUSH
140
+    }
141
+    else if ((instruction & 0xC0) == 0x40) { // ARM_EXIDX_CMD_DATA_PUSH
145
       /* vsp = vsp - (xxxxxx << 2) - 4 */
142
       /* vsp = vsp - (xxxxxx << 2) - 4 */
146
       ucb->vrs[13] -= ((instruction & 0x3F) << 2) - 4;
143
       ucb->vrs[13] -= ((instruction & 0x3F) << 2) - 4;
147
-    } else
148
-    if ((instruction & 0xF0) == 0x80) {
144
+    }
145
+    else if ((instruction & 0xF0) == 0x80) {
149
       /* pop under mask {r15-r12},{r11-r4} or refuse to unwind */
146
       /* pop under mask {r15-r12},{r11-r4} or refuse to unwind */
150
       instruction = instruction << 8 | UnwTabGetNextInstruction(cb, ucb);
147
       instruction = instruction << 8 | UnwTabGetNextInstruction(cb, ucb);
151
 
148
 
171
       }
168
       }
172
 
169
 
173
       /* Patch up the vrs sp if it was in the mask */
170
       /* Patch up the vrs sp if it was in the mask */
174
-      if ((instruction & (1 << (13 - 4))) != 0)
171
+      if (instruction & (1 << (13 - 4)))
175
         ucb->vrs[13] = vsp;
172
         ucb->vrs[13] = vsp;
176
-
177
-    } else
178
-    if ((instruction & 0xF0) == 0x90 && // ARM_EXIDX_CMD_REG_TO_SP
179
-        instruction != 0x9D &&
180
-        instruction != 0x9F) {
173
+    }
174
+    else if ((instruction & 0xF0) == 0x90 // ARM_EXIDX_CMD_REG_TO_SP
175
+           && instruction != 0x9D
176
+           && instruction != 0x9F
177
+    ) {
181
       /* vsp = r[nnnn] */
178
       /* vsp = r[nnnn] */
182
       ucb->vrs[13] = ucb->vrs[instruction & 0x0F];
179
       ucb->vrs[13] = ucb->vrs[instruction & 0x0F];
183
-    } else
184
-    if ((instruction & 0xF0) == 0xA0) { // ARM_EXIDX_CMD_REG_POP
180
+    }
181
+    else if ((instruction & 0xF0) == 0xA0) { // ARM_EXIDX_CMD_REG_POP
185
       /* pop r4-r[4+nnn] or pop r4-r[4+nnn], r14*/
182
       /* pop r4-r[4+nnn] or pop r4-r[4+nnn], r14*/
186
       vsp = ucb->vrs[13];
183
       vsp = ucb->vrs[13];
187
 
184
 
204
 
201
 
205
       ucb->vrs[13] = vsp;
202
       ucb->vrs[13] = vsp;
206
 
203
 
207
-    } else
208
-    if (instruction == 0xB0) { // ARM_EXIDX_CMD_FINISH
204
+    }
205
+    else if (instruction == 0xB0) { // ARM_EXIDX_CMD_FINISH
209
       /* finished */
206
       /* finished */
210
       if (ucb->vrs[15] == 0)
207
       if (ucb->vrs[15] == 0)
211
         ucb->vrs[15] = ucb->vrs[14];
208
         ucb->vrs[15] = ucb->vrs[14];
213
       /* All done unwinding */
210
       /* All done unwinding */
214
       return UNWIND_SUCCESS;
211
       return UNWIND_SUCCESS;
215
 
212
 
216
-    } else
217
-    if (instruction == 0xB1) { // ARM_EXIDX_CMD_REG_POP
213
+    }
214
+    else if (instruction == 0xB1) { // ARM_EXIDX_CMD_REG_POP
218
       /* pop register under mask {r3,r2,r1,r0} */
215
       /* pop register under mask {r3,r2,r1,r0} */
219
       vsp = ucb->vrs[13];
216
       vsp = ucb->vrs[13];
220
       mask = UnwTabGetNextInstruction(cb, ucb);
217
       mask = UnwTabGetNextInstruction(cb, ucb);
234
       }
231
       }
235
       ucb->vrs[13] = (uint32_t)vsp;
232
       ucb->vrs[13] = (uint32_t)vsp;
236
 
233
 
237
-    } else
238
-    if (instruction == 0xB2) { // ARM_EXIDX_CMD_DATA_POP
234
+    }
235
+    else if (instruction == 0xB2) { // ARM_EXIDX_CMD_DATA_POP
239
       /* vps = vsp + 0x204 + (uleb128 << 2) */
236
       /* vps = vsp + 0x204 + (uleb128 << 2) */
240
       ucb->vrs[13] += 0x204 + (UnwTabGetNextInstruction(cb, ucb) << 2);
237
       ucb->vrs[13] += 0x204 + (UnwTabGetNextInstruction(cb, ucb) << 2);
241
-
242
-    } else
243
-    if (instruction == 0xB3 || // ARM_EXIDX_CMD_VFP_POP
244
-      instruction == 0xC8 ||
245
-      instruction == 0xC9) {
246
-
238
+    }
239
+    else if (instruction == 0xB3 // ARM_EXIDX_CMD_VFP_POP
240
+          || instruction == 0xC8
241
+          || instruction == 0xC9
242
+    ) {
247
       /* pop VFP double-precision registers */
243
       /* pop VFP double-precision registers */
248
       vsp = ucb->vrs[13];
244
       vsp = ucb->vrs[13];
249
 
245
 
266
       }
262
       }
267
 
263
 
268
       ucb->vrs[13] = vsp;
264
       ucb->vrs[13] = vsp;
269
-
270
-    } else
271
-    if ((instruction & 0xF8) == 0xB8 ||
272
-        (instruction & 0xF8) == 0xD0) {
273
-
265
+    }
266
+    else if ((instruction & 0xF8) == 0xB8 || (instruction & 0xF8) == 0xD0) {
274
       /* Pop VFP double precision registers D[8]-D[8+nnn] */
267
       /* Pop VFP double precision registers D[8]-D[8+nnn] */
275
       ucb->vrs[14] = 0x80 | (instruction & 0x07);
268
       ucb->vrs[14] = 0x80 | (instruction & 0x07);
276
-
277
-      if ((instruction & 0xF8) == 0xD0) {
269
+      if ((instruction & 0xF8) == 0xD0)
278
         ucb->vrs[14] = 1 << 17;
270
         ucb->vrs[14] = 1 << 17;
279
-      }
280
-
281
-    } else
271
+    }
272
+    else
282
       return UNWIND_UNSUPPORTED_DWARF_INSTR;
273
       return UNWIND_UNSUPPORTED_DWARF_INSTR;
283
   }
274
   }
284
-
285
   return UNWIND_SUCCESS;
275
   return UNWIND_SUCCESS;
286
 }
276
 }
287
 
277
 
288
 static inline __attribute__((always_inline)) uint32_t read_psp() {
278
 static inline __attribute__((always_inline)) uint32_t read_psp() {
289
-
290
   /* Read the current PSP and return its value as a pointer */
279
   /* Read the current PSP and return its value as a pointer */
291
   uint32_t psp;
280
   uint32_t psp;
292
 
281
 

+ 2
- 6
Marlin/src/core/macros.h Ver fichero

84
 #define _BV(n) (1<<(n))
84
 #define _BV(n) (1<<(n))
85
 #define TEST(n,b) (!!((n)&_BV(b)))
85
 #define TEST(n,b) (!!((n)&_BV(b)))
86
 #define SET_BIT_TO(N,B,TF) do{ if (TF) SBI(N,B); else CBI(N,B); }while(0)
86
 #define SET_BIT_TO(N,B,TF) do{ if (TF) SBI(N,B); else CBI(N,B); }while(0)
87
-
88
 #ifndef SBI
87
 #ifndef SBI
89
-  #define SBI(A,B) (A |= (1 << (B)))
88
+  #define SBI(A,B) (A |= _BV(B))
90
 #endif
89
 #endif
91
-
92
 #ifndef CBI
90
 #ifndef CBI
93
-  #define CBI(A,B) (A &= ~(1 << (B)))
91
+  #define CBI(A,B) (A &= ~_BV(B))
94
 #endif
92
 #endif
95
-
96
 #define TBI(N,B) (N ^= _BV(B))
93
 #define TBI(N,B) (N ^= _BV(B))
97
-
98
 #define _BV32(b) (1UL << (b))
94
 #define _BV32(b) (1UL << (b))
99
 #define TEST32(n,b) !!((n)&_BV32(b))
95
 #define TEST32(n,b) !!((n)&_BV32(b))
100
 #define SBI32(n,b) (n |= _BV32(b))
96
 #define SBI32(n,b) (n |= _BV32(b))

+ 2
- 2
Marlin/src/feature/direct_stepping.h Ver fichero

93
     static constexpr int DIRECTIONAL    = dir ? 1 : 0;
93
     static constexpr int DIRECTIONAL    = dir ? 1 : 0;
94
     static constexpr int SEGMENTS       = segments;
94
     static constexpr int SEGMENTS       = segments;
95
 
95
 
96
-    static constexpr int NUM_SEGMENTS   = 1 << BITS_SEGMENT;
97
-    static constexpr int SEGMENT_STEPS  = (1 << (BITS_SEGMENT - DIRECTIONAL)) - 1;
96
+    static constexpr int NUM_SEGMENTS   = _BV(BITS_SEGMENT);
97
+    static constexpr int SEGMENT_STEPS  = _BV(BITS_SEGMENT - DIRECTIONAL) - 1;
98
     static constexpr int TOTAL_STEPS    = SEGMENT_STEPS * SEGMENTS;
98
     static constexpr int TOTAL_STEPS    = SEGMENT_STEPS * SEGMENTS;
99
     static constexpr int PAGE_SIZE      = (NUM_AXES * BITS_SEGMENT * SEGMENTS) / 8;
99
     static constexpr int PAGE_SIZE      = (NUM_AXES * BITS_SEGMENT * SEGMENTS) / 8;
100
 
100
 

+ 4
- 4
Marlin/src/lcd/extui/lib/anycubic_chiron/chiron_tft.cpp Ver fichero

86
 
86
 
87
     safe_delay(200);
87
     safe_delay(200);
88
 
88
 
89
-    // Enable levelling and Disable end stops during print
89
+    // Enable leveling and Disable end stops during print
90
     // as Z home places nozzle above the bed so we need to allow it past the end stops
90
     // as Z home places nozzle above the bed so we need to allow it past the end stops
91
-    injectCommands_P(AC_cmnd_enable_levelling);
91
+    injectCommands_P(AC_cmnd_enable_leveling);
92
 
92
 
93
     // Startup tunes are defined in Tunes.h
93
     // Startup tunes are defined in Tunes.h
94
     //PlayTune(BEEPER_PIN, Anycubic_PowerOn, 1);
94
     //PlayTune(BEEPER_PIN, Anycubic_PowerOn, 1);
762
               selectedmeshpoint.x = selectedmeshpoint.y = 99;
762
               selectedmeshpoint.x = selectedmeshpoint.y = 99;
763
             }
763
             }
764
           break;
764
           break;
765
-          case 'D':   // Save Z Offset tables and restore levelling state
765
+          case 'D':   // Save Z Offset tables and restore leveling state
766
             if (!isPrinting()) {
766
             if (!isPrinting()) {
767
               setAxisPosition_mm(1.0,Z);
767
               setAxisPosition_mm(1.0,Z);
768
               injectCommands_P(PSTR("M500"));
768
               injectCommands_P(PSTR("M500"));
784
             float Zshift = atof(&panel_command[4]);
784
             float Zshift = atof(&panel_command[4]);
785
             setSoftEndstopState(false);  // disable endstops
785
             setSoftEndstopState(false);  // disable endstops
786
             // Allow temporary Z position nudging during print
786
             // Allow temporary Z position nudging during print
787
-            // From the levelling panel use the all points UI to adjust the print pos.
787
+            // From the leveling panel use the all points UI to adjust the print pos.
788
             if (isPrinting()) {
788
             if (isPrinting()) {
789
               #if ACDEBUG(AC_INFO)
789
               #if ACDEBUG(AC_INFO)
790
                 SERIAL_ECHOLNPAIR("Change Zoffset from:", live_Zoffset, " to ", live_Zoffset + Zshift);
790
                 SERIAL_ECHOLNPAIR("Change Zoffset from:", live_Zoffset, " to ", live_Zoffset + Zshift);

+ 1
- 1
Marlin/src/lcd/extui/lib/anycubic_chiron/chiron_tft_defs.h Ver fichero

105
 
105
 
106
 #define AC_cmnd_manual_load_filament   PSTR("M83\nG1 E50 F700\nM82")   // replace the manual panel commands with something a little faster
106
 #define AC_cmnd_manual_load_filament   PSTR("M83\nG1 E50 F700\nM82")   // replace the manual panel commands with something a little faster
107
 #define AC_cmnd_manual_unload_filament PSTR("M83\nG1 E-50 F1200\nM82")
107
 #define AC_cmnd_manual_unload_filament PSTR("M83\nG1 E-50 F1200\nM82")
108
-#define AC_cmnd_enable_levelling       PSTR("M420 S1 V1")
108
+#define AC_cmnd_enable_leveling        PSTR("M420 S1 V1")
109
 #define AC_cmnd_power_loss_recovery    PSTR("G28 X Y R5\nG28 Z")       // Lift, home X and Y then home Z when in 'safe' position
109
 #define AC_cmnd_power_loss_recovery    PSTR("G28 X Y R5\nG28 Z")       // Lift, home X and Y then home Z when in 'safe' position
110
 
110
 
111
 namespace Anycubic {
111
 namespace Anycubic {

+ 1
- 1
Marlin/src/lcd/extui/lib/mks_ui/draw_preHeat.cpp Ver fichero

56
             thermalManager.temp_hotend[uiCfg.curSprayerChoose].target = (float)HEATER_0_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1);
56
             thermalManager.temp_hotend[uiCfg.curSprayerChoose].target = (float)HEATER_0_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1);
57
           }
57
           }
58
         }
58
         }
59
-        #if !defined(SINGLENOZZLE) && HAS_MULTI_EXTRUDER
59
+        #if DISABLED(SINGLENOZZLE) && HAS_MULTI_EXTRUDER
60
           else if ((int)thermalManager.temp_hotend[uiCfg.curSprayerChoose].target > (HEATER_1_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1))) {
60
           else if ((int)thermalManager.temp_hotend[uiCfg.curSprayerChoose].target > (HEATER_1_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1))) {
61
             thermalManager.temp_hotend[uiCfg.curSprayerChoose].target = (float)HEATER_1_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1);
61
             thermalManager.temp_hotend[uiCfg.curSprayerChoose].target = (float)HEATER_1_MAXTEMP - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1);
62
           }
62
           }

+ 0
- 4
Marlin/src/lcd/menu/menu_temperature.cpp Ver fichero

35
   #include "../../module/motion.h"
35
   #include "../../module/motion.h"
36
 #endif
36
 #endif
37
 
37
 
38
-#if ENABLED(SINGLENOZZLE)
39
-  #include "../../module/tool_change.h"
40
-#endif
41
-
42
 //
38
 //
43
 // "Temperature" submenu items
39
 // "Temperature" submenu items
44
 //
40
 //

+ 0
- 4
Marlin/src/lcd/menu/menu_tune.cpp Ver fichero

38
   #include "../../feature/bedlevel/bedlevel.h"
38
   #include "../../feature/bedlevel/bedlevel.h"
39
 #endif
39
 #endif
40
 
40
 
41
-#if ENABLED(SINGLENOZZLE)
42
-  #include "../../module/tool_change.h"
43
-#endif
44
-
45
 #if ENABLED(BABYSTEPPING)
41
 #if ENABLED(BABYSTEPPING)
46
 
42
 
47
   #include "../../feature/babystep.h"
43
   #include "../../feature/babystep.h"

Loading…
Cancelar
Guardar