mirror of
https://github.com/esphome/esphome.git
synced 2026-02-19 16:05:35 -07:00
fixes
This commit is contained in:
@@ -53,7 +53,7 @@ size_t ImprovBase::get_formatted_next_url_(char *buffer, size_t buffer_size) {
|
||||
if (strncmp(p, DEVICE_NAME_PLACEHOLDER, DEVICE_NAME_PLACEHOLDER_LEN) == 0) {
|
||||
out = copy_to_buffer(out, end, device_name);
|
||||
p += DEVICE_NAME_PLACEHOLDER_LEN;
|
||||
} else if (strncmp(p, IP_ADDRESS_PLACEHOLDER, IP_ADDRESS_PLACEHOLDER_LEN) == 0) {
|
||||
} else if (ip_str != nullptr && strncmp(p, IP_ADDRESS_PLACEHOLDER, IP_ADDRESS_PLACEHOLDER_LEN) == 0) {
|
||||
out = copy_to_buffer(out, end, ip_str);
|
||||
p += IP_ADDRESS_PLACEHOLDER_LEN;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user