|
@@ -585,8 +585,8 @@ static void TcpDataInfoAssembleSend()
|
|
|
UINT8 *SendBuffer = NULL;
|
|
|
UINT8 BufferLen = 0;
|
|
|
UINT8 rbuf[100];
|
|
|
- sprintf((char *)rbuf,"%d,%x,%x,%d,%d,,%d,%d,%d,%d,%d,%d,%d",
|
|
|
- Data_Current,BattRemainCap,battProtectState,AppDataInfo.RelayControl,chargerConnectState,
|
|
|
+ sprintf((char *)rbuf,"%d,%x,%x,%d,%d,%x,,%d,%d,%d,%d,%d,%d,%d",
|
|
|
+ Data_Current,BattRemainCap,battProtectState,AppDataInfo.RelayControl,chargerConnectState,BmsUpdateState,
|
|
|
AppDataInfo.rentaltype,AppDataInfo.ExpiryTimeArray[0],AppDataInfo.ExpiryTimeArray[1],AppDataInfo.ExpiryTimeArray[2],AppDataInfo.ExpiryTimeArray[3],AppDataInfo.ExpiryTimeArray[4],AppDataInfo.ExpiryTimeArray[5]);
|
|
|
BufferLen = strlen(rbuf);
|
|
|
SendBuffer = malloc(BufferLen+sizeof(DebugMsgInfo));
|
|
@@ -635,11 +635,11 @@ static void TcpDataInfoAssembleSend()
|
|
|
UINT8 *SendBuffer = NULL;
|
|
|
UINT16 BufferLen = 0;
|
|
|
BufferLen = Debug_GetSize();
|
|
|
- if(BufferLen>200)
|
|
|
+ if(BufferLen>500)
|
|
|
{
|
|
|
Debug_Del_Logfile();
|
|
|
#ifdef DEBUGLOG
|
|
|
- Debug_printf("Sys:%d\n",AppDataInfo.SysReStart);
|
|
|
+ Debug_printf("Sys:%d,%d\n",AppDataInfo.SysReStart,BufferLen);
|
|
|
#endif
|
|
|
BufferLen = Debug_GetSize();
|
|
|
}
|