Ver código fonte

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

CHENJIE-PC\QiXiang_CHENJIE 3 anos atrás
pai
commit
f61db0473e
1 arquivos alterados com 1 adições e 1 exclusões
  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;