Forráskód Böngészése

phase detect 需要不触发和触发都测试

Signed-off-by: kevin <huhui@sharkgulf.com>
kevin 2 éve
szülő
commit
e4bfc51323
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Applications/app/factory.c

+ 1 - 1
Applications/app/factory.c

@@ -86,7 +86,7 @@ void can_process_factory_message(can_message_t *can_message){
 				float uvw[3] = {0, 0, 0};
 				s16 uvw_total[3] = {0, 0, 0};
 				u8 detect = decode_u8((u8 *)can_message->data + 1);
-				gpio_phase_u_detect(true);
+				gpio_phase_u_detect(detect?true:false);
 				delay_ms(50);
 				while(count-- > 0) {
 					delay_us(100);