mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Remove logging causing heap degradation (#13251)
This commit is contained in:
parent
019ccae4d0
commit
69f4fa932e
@ -3066,18 +3066,17 @@ void MI32ShowTriggeredSensors(){
|
|||||||
if (alias && *alias){
|
if (alias && *alias){
|
||||||
id = alias;
|
id = alias;
|
||||||
} else {
|
} else {
|
||||||
sprintf(idstr, PSTR("%s%02x%02x%02x"),
|
snprintf_P(idstr, sizeof(idstr), PSTR("%s%02x%02x%02x"),
|
||||||
kMI32DeviceType[p->type-1],
|
kMI32DeviceType[p->type-1],
|
||||||
p->MAC[3], p->MAC[4], p->MAC[5]);
|
p->MAC[3], p->MAC[4], p->MAC[5]);
|
||||||
}
|
}
|
||||||
sprintf(SensorTopic, "tele/tasmota_ble/%s",
|
snprintf_P(SensorTopic, sizeof(SensorTopic), PSTR("tele/tasmota_ble/%s"), id);
|
||||||
id);
|
|
||||||
MqttPublish(SensorTopic, Settings->flag.mqtt_sensor_retain);
|
MqttPublish(SensorTopic, Settings->flag.mqtt_sensor_retain);
|
||||||
} else {
|
AddLog(LOG_LEVEL_DEBUG, PSTR("M32: triggered %d %s"), sensor, ResponseData());
|
||||||
MqttPublishPrefixTopic_P(STAT, PSTR(D_RSLT_SENSOR), Settings->flag.mqtt_sensor_retain);
|
|
||||||
}
|
|
||||||
AddLog(LOG_LEVEL_DEBUG,PSTR("M32: %s: triggered %d %s"),D_CMND_MI32, sensor, ResponseData());
|
|
||||||
XdrvRulesProcess(0);
|
XdrvRulesProcess(0);
|
||||||
|
} else {
|
||||||
|
MqttPublishPrefixTopicRulesProcess_P(STAT, PSTR(D_RSLT_SENSOR), Settings->flag.mqtt_sensor_retain);
|
||||||
|
}
|
||||||
|
|
||||||
} else { // else don't and clear
|
} else { // else don't and clear
|
||||||
ResponseClear();
|
ResponseClear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user