esp_wifi_types.h

joakuim
Posts: 3
Joined: Tue Apr 04, 2017 2:46 pm

esp_wifi_types.h

Postby joakuim » Sun Apr 23, 2017 7:46 pm

In my opinion the line
..~.
#include "esp_wifi_types.h"
...
is not needed.
Although it is not "executed" because of
...
#ifndef __ESP_WIFI_TYPES_H__
#define __ESP_WIFI_TYPES_H__
...

ESP_Angus
Posts: 2182
Joined: Sun May 08, 2016 4:11 am

Re: esp_wifi_types.h

Postby ESP_Angus » Sun Apr 23, 2017 11:53 pm

I think there might be some context missing in this bug report. Are you looking at a particular C file that includes this header?

The #ifndef/#define guard prevents the header from being included twice (for example when included recursively from two different headers.)

ESP_igrr
Posts: 1675
Joined: Tue Dec 01, 2015 8:37 am

Re: esp_wifi_types.h

Postby ESP_igrr » Mon Apr 24, 2017 4:28 am

I think what the OP is saying is that esp_wifi_types.h file has #include "esp_wifi_types.h" inside. Which is indeed not needed.

joakuim
Posts: 3
Joined: Tue Apr 04, 2017 2:46 pm

Re: esp_wifi_types.h

Postby joakuim » Mon Apr 24, 2017 11:34 pm

Indeed ESP_igrr is right.
What I intended to say is this: in file es_wifi_types.h the line #include "esp_wifi_types.h" is not needed.
Not a "real" bug!

Who is online

Users browsing this forum: No registered users and 8 guests