Bayley Wang / Mbed 2 deprecated foc-ed_in_the_bot_compact

Dependencies:   FastPWM3 mbed

Revision:
237:1a4591a0dd2d
Parent:
229:90c6892f4d3b
Child:
238:cf54cb197c8f
--- a/BREMS/BREMSConfig.cpp	Sat Nov 10 10:01:20 2018 +0000
+++ b/BREMS/BREMSConfig.cpp	Sat Nov 10 11:18:49 2018 +0000
@@ -34,7 +34,7 @@
     
     TIM1->PSC = 0x00; //no prescaler, timer counts up in sync with the peripheral clock
     TIM1->ARR = (int) (2 * (float) 9e7 / _F_SW);
-    TIM1->CCER |= ~(TIM_CCER_CC1NP); //Interupt when low side is on.
+    TIM1->CCER |= (TIM_CCER_CC1NP); //Interupt when low side is on.
     TIM1->CR1 |= TIM_CR1_CEN;
     
     //ADC Setup