]> granicus.if.org Git - esp-idf/commitdiff
mdns: documentation: fixed inconsistent enum in example of reading mdns results
authorDavid Cermak <cermak@espressif.com>
Tue, 14 May 2019 14:41:07 +0000 (16:41 +0200)
committerDavid Cermak <cermak@espressif.com>
Tue, 14 May 2019 14:41:07 +0000 (16:41 +0200)
docs/en/api-reference/protocols/mdns.rst

index d01e24149ae13c982900254dc58385adc9230985..5a31fb613c2d126cb999f140fba76ce2f11093f2 100644 (file)
@@ -126,7 +126,7 @@ Example method to resolve local services::
             }
             a = r->addr;
             while(a){
-                if(a->addr.type == MDNS_IP_PROTOCOL_V6){
+                if(a->addr.type == IPADDR_TYPE_V6){
                     printf("  AAAA: " IPV6STR "\n", IPV62STR(a->addr.u_addr.ip6));
                 } else {
                     printf("  A   : " IPSTR "\n", IP2STR(&(a->addr.u_addr.ip4)));