|
@@ -194,10 +194,10 @@ int jt808_Build_Ax_Cmd(uint8_t *pBuf, uint32_t flowID, uint8_t *pEmergencyflag)
|
|
|
memcpy(&cang_data_tbak[cang_id],&cang_data[cang_id],sizeof(Struct_Cang));
|
|
|
}
|
|
|
|
|
|
- if(memcmp(&tank_data_tbak, &tank_data, sizeof(Struct_Tank))){
|
|
|
- emergencyflag=0x80;
|
|
|
- }
|
|
|
- memcpy(&tank_data_tbak, &tank_data, sizeof(Struct_Tank));
|
|
|
+ //if(memcmp(&tank_data_tbak, &tank_data, sizeof(Struct_Tank))){
|
|
|
+ // emergencyflag=0x80;
|
|
|
+ //}
|
|
|
+ //memcpy(&tank_data_tbak, &tank_data, sizeof(Struct_Tank));
|
|
|
|
|
|
if((overflow_cnt==0) && (overflow_cnt==overflow_cnt_bak))
|
|
|
{
|
|
@@ -221,6 +221,7 @@ int jt808_Build_Ax_Cmd(uint8_t *pBuf, uint32_t flowID, uint8_t *pEmergencyflag)
|
|
|
//防溢流插座
|
|
|
pBuf[send_pos++] = 0x22;
|
|
|
pBuf[send_pos++] = overflow_flag;
|
|
|
+ #if 0
|
|
|
//门磁
|
|
|
pBuf[send_pos++] = 0x21;
|
|
|
pBuf[send_pos++] = 0x01;
|
|
@@ -228,7 +229,7 @@ int jt808_Build_Ax_Cmd(uint8_t *pBuf, uint32_t flowID, uint8_t *pEmergencyflag)
|
|
|
//人脸授权
|
|
|
pBuf[send_pos++] = 0x23;
|
|
|
pBuf[send_pos++] = tank_data_tbak.Facial_Auth;
|
|
|
-
|
|
|
+ #endif
|
|
|
//61 人孔大盖 开关
|
|
|
send_pos += jt808_Build_0x61_ManHole_Big_SW((uint8_t *)pBuf+send_pos);
|
|
|
|
|
@@ -248,7 +249,7 @@ int jt808_Build_Ax_Cmd(uint8_t *pBuf, uint32_t flowID, uint8_t *pEmergencyflag)
|
|
|
send_pos += jt808_Build_0x6B_Pressure((uint8_t *)pBuf+send_pos);
|
|
|
|
|
|
//6C 液位
|
|
|
- send_pos += jt808_Build_0x6C_Level((uint8_t *)pBuf+send_pos);
|
|
|
+ //send_pos += jt808_Build_0x6C_Level((uint8_t *)pBuf+send_pos);
|
|
|
|
|
|
//6D 仓状态
|
|
|
send_pos += jt808_Build_0x6d_Cang_info((uint8_t *)pBuf+send_pos);
|