1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-16 08:43:45 +01:00
This commit is contained in:
J. Nick Koston
2025-10-07 16:46:26 -05:00
parent 95ecacc5f7
commit 57bd6ec68c

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 (pgm_read_byte(proto) == '_') {
while (progmem_read_byte(proto) == '_') {
proto++;
}
auto *service_type = MDNS_STR_ARG(service.service_type);
while (pgm_read_byte(service_type) == '_') {
while (progmem_read_byte(service_type) == '_') {
service_type++;
}
uint16_t port = const_cast<TemplatableValue<uint16_t> &>(service.port).value();