修复了 Check_Allow_Work() 函数中温控逻辑的 3 个 bug:
char temp 类型溢出sensor[s_Temp].value 是 int32_t,485 传感器 0.1°C 分辨率下 25.0°C 对应 raw=250,char (signed 8-bit) 只能存 -128~127,导致溢出int32_t temptemp < limit.temp_dw * 10(比较下限值 + 小于号),与下限块完全相同temp > limit.temp_up * 10(温度超过上限才触发)sensor[s_Temp].online >= 1 && sensor[s_Temp].online >= 1 重复判断,删除了重复项temp_dw * 10 <= temp <= temp_up * 10temp_dn_cnt = 0 导致计数器清零,后续即使温度仍低于下限,也需要重新累积 20 次才能再次触发(脉冲式保护,每 20s 只保护 1s)temp_dn_cnt = 0,与上限逻辑保持一致(触发后 latch 住,条件持续满足则每次立即返回 res_Temp)