[sim800l] Combine log statements to reduce loop blocking (#12961)

This commit is contained in:
J. Nick Koston
2026-01-04 16:52:57 -10:00
committed by GitHub
parent 4bc1a02fc2
commit c742db48b8

View File

@@ -323,8 +323,10 @@ void Sim800LComponent::parse_cmd_(std::string message) {
kick ESPHome callback now
*/
if (ok || message.compare(0, 6, "+CMGL:") == 0) {
ESP_LOGD(TAG, "Received SMS from: %s", this->sender_.c_str());
ESP_LOGD(TAG, "%s", this->message_.c_str());
ESP_LOGD(TAG,
"Received SMS from: %s\n"
"%s",
this->sender_.c_str(), this->message_.c_str());
this->sms_received_callback_.call(this->message_, this->sender_);
this->state_ = STATE_RECEIVED_SMS;
} else {