fix:修改服务信息驱动初始化、补充readme、修改C5IO备注文本
1、修改服务信息驱动初始化 2、补充readme 3、修复C5IO的h文件的部分异常备注
This commit is contained in:
@@ -3972,11 +3972,12 @@ void Internal_TFTP_Task(void)
|
||||
*/
|
||||
uint8_t UDP_ActSend_PowerChange_Scan_State(void)
|
||||
{
|
||||
uint8_t temp_state = 0,last_temp_state = 0,temp_flag = 0;
|
||||
uint8_t temp_state = 0,last_temp_state = 0,temp_flag = 0,last_temp_flag = 0;
|
||||
uint32_t temp_tick = 0;
|
||||
|
||||
/*<2A>ж<EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ƿ<EFBFBD><C7B7>б仯*/
|
||||
temp_flag = SRAM_Read_Byte(SRAM_UDP_ELEReport_Action);
|
||||
last_temp_flag = temp_flag;
|
||||
|
||||
temp_tick = SRAM_Read_DW(SRAM_UDP_ELEReport_EleState_Tick);
|
||||
if(SysTick_1ms - temp_tick <= 4000)
|
||||
@@ -4041,15 +4042,20 @@ uint8_t UDP_ActSend_PowerChange_Scan_State(void)
|
||||
}
|
||||
|
||||
|
||||
if(temp_flag != 0x00)
|
||||
if(temp_flag != last_temp_flag)
|
||||
{
|
||||
SRAM_Write_Byte(temp_flag,SRAM_UDP_ELEReport_Action);
|
||||
|
||||
if( ((server_info.active_cmd_flag & UDP_ActSend_PowerChange_Flag) != 0x00) && (server_info.udp_send_flag == UDP_ActSend_PowerChange_Flag) )
|
||||
{
|
||||
/*<2A><>ǰ<EFBFBD><C7B0><EFBFBD>ڷ<EFBFBD><DAB7><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><E3A3AC><EFBFBD>¿<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>*/
|
||||
server_info.udp_retry_cnt = 0x00;
|
||||
server_info.udp_retry_time = 2000;
|
||||
|
||||
if( (server_info.udp_sta == 0x03) || (server_info.udp_sta == 0x04) )
|
||||
{
|
||||
//<2F><>ǰ<EFBFBD><C7B0><EFBFBD>ڷ<EFBFBD><DAB7><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><E3A3AC><EFBFBD>¿<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>
|
||||
|
||||
server_info.udp_sta = 0x02;
|
||||
}
|
||||
|
||||
}else {
|
||||
server_info.active_cmd_flag |= UDP_ActSend_PowerChange_Flag;
|
||||
|
||||
Reference in New Issue
Block a user