Ver código fonte

Fix a pair of compiler complaints

Scott Lahteine 7 anos atrás
pai
commit
10da175be5
2 arquivos alterados com 2 adições e 3 exclusões
  1. 1
    2
      Marlin/Marlin_main.cpp
  2. 1
    1
      Marlin/fastio.h

+ 1
- 2
Marlin/Marlin_main.cpp Ver arquivo

@@ -4175,7 +4175,7 @@ inline void gcode_G28() {
4175 4175
       ABL_VAR int abl_probe_index;
4176 4176
     #endif
4177 4177
 
4178
-    #if HAS_SOFTWARE_ENDSTOPS
4178
+    #if HAS_SOFTWARE_ENDSTOPS && ENABLED(PROBE_MANUALLY)
4179 4179
       ABL_VAR bool enable_soft_endstops = true;
4180 4180
     #endif
4181 4181
 
@@ -4599,7 +4599,6 @@ inline void gcode_G28() {
4599 4599
 
4600 4600
       #endif // AUTO_BED_LEVELING_3POINT
4601 4601
 
4602
-
4603 4602
     #else // !PROBE_MANUALLY
4604 4603
 
4605 4604
       bool stow_probe_after_each = code_seen('E');

+ 1
- 1
Marlin/fastio.h Ver arquivo

@@ -138,7 +138,7 @@ typedef enum {
138 138
   }while(0)
139 139
 
140 140
 #define SET_COM(T,Q,V) do{ \
141
-    TCCR##T##Q = (TCCR##T##Q & ~(0x3 << COM1##Q##0) | (int(V) & 0x3) << COM1##Q##0); \
141
+    TCCR##T##Q = (TCCR##T##Q & ~(0x3 << COM1##Q##0)) | ((int(V) & 0x3) << COM1##Q##0); \
142 142
   }while(0)
143 143
 #define SET_COMA(T,V) SET_COM(T,A,V)
144 144
 #define SET_COMB(T,V) SET_COM(T,B,V)

Carregando…
Cancelar
Salvar