Explorar el Código

速度小于10RPM可以升级重启

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui hace 3 años
padre
commit
747ca05851
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Applications/prot/can_pc_message.c

+ 1 - 1
Applications/prot/can_pc_message.c

@@ -35,7 +35,7 @@ bool can_process_iap_message(can_message_t *can_message) {
 	rsplen = 3;
 	switch(can_message->key) {
 		case BUILD_CMD_KEY(0xF0):
-			if (PMSM_FOC_GetSpeed() != 0.0f) {
+			if (PMSM_FOC_GetSpeed() > 10.0f) {
 				response[2] = 1;
 				iap_send_data(can_message->src, response, rsplen);
 				return true;