Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b6cc108

Browse files
Update WiFiProv.cpp (#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

‎libraries/WiFi/src/WiFiProv.cpp‎

Lines changed: 3 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /