浏览代码

解决gd32 demo的编译错误

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 3 年之前
父节点
当前提交
291119e50c
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
 }