Explorar o código

BMS_Fota升级Bug修复,增加0x88判定

CHENJIE-PC\QiXiang_CHENJIE %!s(int64=3) %!d(string=hai) anos
pai
achega
f61db0473e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Fota.c

+ 1 - 1
src/Fota.c

@@ -31,7 +31,7 @@ void Fota_Func(UINT8 *DataPtr,INT32 connectId,UINT8 FotaType)
     {
         Fota_S.Fota_Flash_Addres = FLASH_BMS_FOTA_START_ADDR;
     }
-    if(*(DataPtr+30)==0x01)
+    if(*(DataPtr+30)==0x01||*(DataPtr+30)==0x88)
     {
         Fota_Cmd = *(DataPtr+31);
         Fota_Answer[0] = TCP_START_SYM1;