添加对额外 UI 资源和火焰状态变量的支持
- 增加了 `ui.h` 中资源数组的大小以容纳新的 UI 元素。 - 更新了 `ui_font_chinese_16.c`,添加了更多中文字符以更好地支持本地化。 - 在 `vars.h` 中添加了用于管理火焰状态的新函数,增强了系统的监测能力。
This commit is contained in:
@@ -163,3 +163,16 @@ void set_var_system_ip(const char *value) {
|
||||
strncpy(system_ip, value, sizeof(system_ip) / sizeof(char));
|
||||
system_ip[sizeof(system_ip) / sizeof(char) - 1] = 0;
|
||||
}
|
||||
|
||||
char fire_status[100] = { 0 };
|
||||
|
||||
const char *get_var_fire_status() {
|
||||
return fire_status;
|
||||
}
|
||||
|
||||
void set_var_fire_status(const char *value) {
|
||||
strncpy(fire_status, value, sizeof(fire_status) / sizeof(char));
|
||||
fire_status[sizeof(fire_status) / sizeof(char) - 1] = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user