修改一下模型相关

This commit is contained in:
2025-09-24 12:42:13 +08:00
parent 41e14ec828
commit 670b86d200
3 changed files with 92 additions and 149 deletions

7
core.h
View File

@@ -188,10 +188,13 @@ int judge() {
// 获取用户设置的温度范围 (从Preferences读取)
Preferences prefs;
prefs.begin("DACSC", true); // 只读模式
float min_temp = prefs.getFloat("min_temp", 5.0); // 默认最低温度22°C
float max_temp = prefs.getFloat("max_temp", 28.0); // 默认最高温度26°C
float min_temp = prefs.getFloat("min_temp", 10.0); // 默认最低温度10°C
float max_temp = prefs.getFloat("max_temp", 28.0); // 默认最高温度28°C
prefs.end();
// 打印当前使用的温度设置
Serial.printf("当前温度设置 - 最低: %.1f°C, 最高: %.1f°C\n", min_temp, max_temp);
// 判断逻辑:基于节假日、音频识别、时间、温度和湿度的智能控制
// 规则1节假日规则优先级最高