Skip to content

Commit 7e459fb

Browse files
committed
Add definition guards
1 parent 6a1f347 commit 7e459fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libraries/WiFi/src/WiFi.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,17 @@ extern "C" {
3737
#include "WhdSoftAPInterface.h"
3838
#endif
3939

40+
#ifndef DEFAULT_IP_ADDRESS
4041
#define DEFAULT_IP_ADDRESS "192.168.3.1"
42+
#endif
43+
44+
#ifndef DEFAULT_NETMASK
4145
#define DEFAULT_NETMASK "255.255.255.0"
46+
#endif
47+
48+
#ifndef DEFAULT_AP_CHANNEL
4249
#define DEFAULT_AP_CHANNEL 6
50+
#endif
4351

4452
namespace arduino {
4553

0 commit comments

Comments
 (0)