Fix a pair of compiler complaints

This commit is contained in:
Scott Lahteine
2017-04-22 00:07:37 -05:00
parent ff0018e287
commit 10da175be5
2 changed files with 2 additions and 3 deletions

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)