Jelajahi Sumber

解决gd32 demo的编译错误

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 3 tahun lalu
induk
melakukan
291119e50c
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      Applications/foc/motor/motor.c

+ 2 - 0
Applications/foc/motor/motor.c

@@ -171,6 +171,7 @@ bool mc_throttle_released(void) {
 
 
 void MC_Brake_IRQHandler(void) {
+#ifdef GPIO_BRAKE_IN_GROUP
 	int count = 50;
 	int settimes = 0;
 	while(count-- >= 0) {
@@ -188,6 +189,7 @@ void MC_Brake_IRQHandler(void) {
 		//有干扰,do nothing
 		motor.n_brake_errors++;
 	}
+#endif
 }