mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-05 14:56:32 +02:00
IDF release/v4.0 230931310
This commit is contained in:
@ -71,13 +71,20 @@ typedef struct {
|
||||
wps_factory_information_t factory_info;
|
||||
} esp_wps_config_t;
|
||||
|
||||
/* C & C++ compilers have different rules about C99-style named initializers */
|
||||
#ifdef __cplusplus
|
||||
#define WPS_AGG(X) { X }
|
||||
#else
|
||||
#define WPS_AGG(X) X
|
||||
#endif
|
||||
|
||||
#define WPS_CONFIG_INIT_DEFAULT(type) { \
|
||||
.wps_type = type, \
|
||||
.factory_info = { \
|
||||
.manufacturer = "ESPRESSIF", \
|
||||
.model_number = "ESP32", \
|
||||
.model_name = "ESPRESSIF IOT", \
|
||||
.device_name = "ESP STATION", \
|
||||
WPS_AGG( .manufacturer = "ESPRESSIF" ), \
|
||||
WPS_AGG( .model_number = "ESP32" ), \
|
||||
WPS_AGG( .model_name = "ESPRESSIF IOT" ), \
|
||||
WPS_AGG( .device_name = "ESP STATION" ), \
|
||||
} \
|
||||
}
|
||||
|
||||
|
@ -71,13 +71,20 @@ typedef struct {
|
||||
wps_factory_information_t factory_info;
|
||||
} esp_wps_config_t;
|
||||
|
||||
/* C & C++ compilers have different rules about C99-style named initializers */
|
||||
#ifdef __cplusplus
|
||||
#define WPS_AGG(X) { X }
|
||||
#else
|
||||
#define WPS_AGG(X) X
|
||||
#endif
|
||||
|
||||
#define WPS_CONFIG_INIT_DEFAULT(type) { \
|
||||
.wps_type = type, \
|
||||
.factory_info = { \
|
||||
.manufacturer = "ESPRESSIF", \
|
||||
.model_number = "ESP32", \
|
||||
.model_name = "ESPRESSIF IOT", \
|
||||
.device_name = "ESP STATION", \
|
||||
WPS_AGG( .manufacturer = "ESPRESSIF" ), \
|
||||
WPS_AGG( .model_number = "ESP32" ), \
|
||||
WPS_AGG( .model_name = "ESPRESSIF IOT" ), \
|
||||
WPS_AGG( .device_name = "ESP STATION" ), \
|
||||
} \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user