1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-17 17:23:45 +01:00
This commit is contained in:
J. Nick Koston
2025-10-07 16:58:19 -05:00
parent 57bd6ec68c
commit 7446c87267

View File

@@ -22,11 +22,11 @@ void MDNSComponent::setup() {
// expects the underscore to be there, the ESP8266 implementation always adds
// the underscore itself.
auto *proto = MDNS_STR_ARG(service.proto);
while (progmem_read_byte(proto) == '_') {
while (progmem_read_byte((const uint8_t *) proto) == '_') {
proto++;
}
auto *service_type = MDNS_STR_ARG(service.service_type);
while (progmem_read_byte(service_type) == '_') {
while (progmem_read_byte((const uint8_t *) service_type) == '_') {
service_type++;
}
uint16_t port = const_cast<TemplatableValue<uint16_t> &>(service.port).value();