mirror of
https://github.com/esphome/esphome.git
synced 2024-12-03 13:34:01 +01:00
parent
2d4688a206
commit
e6bd2238ce
@ -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 New Issue
Block a user