mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +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->state_ = STATE_RECEIVED_SMS;
|
||||
} else {
|
||||
if (this->message_.length() > 0)
|
||||
if (!this->message_.empty())
|
||||
this->message_ += "\n";
|
||||
this->message_ += message;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue