Explorar o código

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

Signed-off-by: kevin <huhui@sharkgulf.com>
kevin %!s(int64=2) %!d(string=hai) anos
pai
achega
e4bfc51323
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);