Selaa lähdekoodia

Fix typo in new SET_COM macro

benlye 7 vuotta sitten
vanhempi
commit
3ed737425d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      Marlin/fastio.h

+ 1
- 1
Marlin/fastio.h Näytä tiedosto

@@ -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)

Loading…
Peruuta
Tallenna