From b181cd0402de3a02f88069981e8277c6d734647e Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期四, 28 一月 2021 17:50:55 +0800
Subject: [PATCH] V2.21 修复下发震动BUG

---
 Src/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Src/main.c b/Src/main.c
index 8afe2fe..466e2ed 100644
--- a/Src/main.c
+++ b/Src/main.c
@@ -132,6 +132,7 @@
 	//motor_state=2;
 if(g_com_map[MOTOR_ENABLE])
 {
+    
 		if(motor_keeptime>0)
 		{
 			motor_state = 2;
@@ -956,6 +957,8 @@
 	{	
 	motor_keeptime-=(float)g_com_map[COM_INTERVAL]/1000;
 	}
+    if(motor_keeptime<0)
+    {motor_keeptime = 0;}
 	if(active_flag==0)
 	{
 	if(!GET_USERKEY)

--
Gitblit v1.9.3