Fix typo in new SET_COM macro

This commit is contained in:
benlye 2017-04-21 20:53:58 +01:00 committed by Roxy-3D
parent 88649b06a6
commit 3ed737425d

View file

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