Explorar el Código

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

CHENJIE-PC\QiXiang_CHENJIE hace 3 años
padre
commit
f61db0473e
Se han modificado 1 ficheros con 1 adiciones y 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;