1.变更了引脚,并且添加了一个继电器使用PD7为报警灯
This commit is contained in:
2026-09-03 16:22:51 +08:00
parent 118727b491
commit 293b1add7c
15 changed files with 7237 additions and 138 deletions
-57
View File
@@ -1734,24 +1734,6 @@ static void gui_tjc_hmi_device_config_send(u8 cmd, u8 opa, u8 *p_data)
u8 current_enabled_index = 0; /*当前是第几个启用的设备*/
u8 device_index;
/*计算启用的设备数量*/
// enabled_device_count = 0;
// for(i = 0; i < APP_LEAKAGE_SUB_DEVICE_NUM; i++)
// {
// if(leakage.sub_device_data[i].flash_data.state == ENABLE)
// {
// enabled_device_count++;
// }
// }
//
// /*计算总页数*/
// page_num = enabled_device_count / DEVICES_PER_PAGE;
// remain_region_num = enabled_device_count % DEVICES_PER_PAGE;
// if(remain_region_num > 0)
// {
// page_num++;
// }
//
/*确保页码在有效范围内*/
if (p_tjc_hmi->page.device_config_index >= page_num)
{
@@ -2001,45 +1983,6 @@ static void gui_tjc_hmi_device_config_send(u8 cmd, u8 opa, u8 *p_data)
}
}
// /*解析波特率*/
// for(i = 0; i < 10; i++) // 波特率最大为115200
// {
// if(current_pos[i] == HMI_PROTO_ASCII_RX_DELINITER)
// {
// if(i == 0)
// {
// /*波特率不能为空*/
// return;
// }
// char baud_str[10] = {0};
// memcpy(baud_str, current_pos, i);
// baud_str[i] = '\0';
// /*将字符串波特率转换为数值*/
// if(strcmp(baud_str, "2400") == 0)
// {
// new_device.baudrate = 0;
// }
// else if(strcmp(baud_str, "4800") == 0)
// {
// new_device.baudrate = 1;
// }
// else if(strcmp(baud_str, "9600") == 0)
// {
// new_device.baudrate = 2;
// }
// else if(strcmp(baud_str, "115200") == 0)
// {
// new_device.baudrate = 3;
// }
// current_pos += (i + 1);
// field_count++;
// break;
// }
// }
/*解析区域名*/
for (i = 0; i < APP_LEAKAGE_STRING_NANE_LEN; i++)
{