Browse Source

MGMLX:V2.3.0.9,增加测试时蜂鸣器响

CHENJIE-PC\QiXiang_CHENJIE 3 years ago
parent
commit
f2c7825dd1
2 changed files with 3 additions and 1 deletions
  1. 1 1
      inc/app.h
  2. 2 0
      src/CANTask.c

+ 1 - 1
inc/app.h

@@ -51,7 +51,7 @@ extern "C" {
 #define	BLSWVERSION		0x01020000    //BootLoader版本号V1.2.0.0
 #define	DRVSWVERSION		0x01050000     //驱动层版本号V1.4.0.0  驱动层1.5.0.0,增加了三轴
 //#define	APPSWVERSION		0x01020209     
-#define	APPSWVERSION		0x02030007
+#define	APPSWVERSION		0x02030009
 //#define	APPSWVERSION		0x0201000E
 //--------------------------------------------------------------------------------
 

+ 2 - 0
src/CANTask.c

@@ -96,6 +96,7 @@ static void Can_Receive()
 						if(CanRxMsg[i].Id == 0x7A0)
 						{	
 							udsFlag = 1;
+							BuzzerControl = TRUE;
 							UDSService[i] =  CanRxMsg[i].Data[0];
 							UDSSubService[i] = CanRxMsg[i].Data[1];
 							UDSSubServiceActionCode[i] = CanRxMsg[i].Data[2];
@@ -123,6 +124,7 @@ static void Can_Receive()
 					{	
 						UDS_Service();
 						udsFlag = 0;
+						BuzzerControl = FALSE;
 					}
 					else if(msgFlag == 1)
 					{