mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
@@ -324,7 +324,7 @@ void Sim800LComponent::parse_cmd_(std::string message) {
|
|||||||
this->sms_received_callback_.call(this->message_, this->sender_);
|
this->sms_received_callback_.call(this->message_, this->sender_);
|
||||||
this->state_ = STATE_RECEIVED_SMS;
|
this->state_ = STATE_RECEIVED_SMS;
|
||||||
} else {
|
} else {
|
||||||
if (this->message_.length() > 0)
|
if (!this->message_.empty())
|
||||||
this->message_ += "\n";
|
this->message_ += "\n";
|
||||||
this->message_ += message;
|
this->message_ += message;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user