mirror of
https://github.com/esphome/esphome.git
synced 2026-01-10 04:00:51 -07:00
[sim800l] Combine log statements to reduce loop blocking (#12961)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user