mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
parent
2d4688a206
commit
e6bd2238ce
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue