From 3ed737425d3e38bbbfaca4ac82cc797b77ef1c23 Mon Sep 17 00:00:00 2001 From: benlye Date: Fri, 21 Apr 2017 20:53:58 +0100 Subject: [PATCH] Fix typo in new SET_COM macro --- Marlin/fastio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/fastio.h b/Marlin/fastio.h index 0e73a39483..9c1325e8a7 100644 --- a/Marlin/fastio.h +++ b/Marlin/fastio.h @@ -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)