Skip to content

Commit b6cc108

Browse files
authored
Update WiFiProv.cpp (espressif#4519)
Do not pollute the global namespace with generic names like 'config' by declaring global variables 'static'.
1 parent 8816bb5 commit b6cc108

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: libraries/WiFi/src/WiFiProv.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333
#undef IPADDR_NONE
3434
#include "WiFi.h"
3535

36-
wifi_prov_mgr_config_t config;
37-
scheme_t prov_scheme;
3836
extern esp_err_t postToSysQueue(system_prov_event_t *);
37+
38+
static wifi_prov_mgr_config_t config;
39+
static scheme_t prov_scheme;
3940
static const uint8_t custom_service_uuid[16] = { 0xb4, 0xdf, 0x5a, 0x1c, 0x3f, 0x6b, 0xf4, 0xbf,
4041
0xea, 0x4a, 0x82, 0x03, 0x04, 0x90, 0x1a, 0x02, };
4142

0 commit comments

Comments
 (0)