Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
795968a8
Unverified
Commit
795968a8
authored
Feb 14, 2024
by
Earle F. Philhower, III
Committed by
GitHub
Feb 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up WIFI local variable MAC size (#2006)
MACs are 6-bytes long, not 8.
parent
01ab02d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libraries/WiFi/src/WiFiClass.h
libraries/WiFi/src/WiFiClass.h
+2
-2
No files found.
libraries/WiFi/src/WiFiClass.h
View file @
795968a8
...
@@ -154,7 +154,7 @@ public:
...
@@ -154,7 +154,7 @@ public:
}
}
String
softAPmacAddress
(
void
)
{
String
softAPmacAddress
(
void
)
{
uint8_t
mac
[
8
];
uint8_t
mac
[
6
];
macAddress
(
mac
);
macAddress
(
mac
);
char
buff
[
32
];
char
buff
[
32
];
sprintf
(
buff
,
"%02x:%02x:%02x:%02x:%02x:%02x"
,
mac
[
0
],
mac
[
1
],
mac
[
2
],
mac
[
3
],
mac
[
4
],
mac
[
5
]);
sprintf
(
buff
,
"%02x:%02x:%02x:%02x:%02x:%02x"
,
mac
[
0
],
mac
[
1
],
mac
[
2
],
mac
[
3
],
mac
[
4
],
mac
[
5
]);
...
@@ -240,7 +240,7 @@ public:
...
@@ -240,7 +240,7 @@ public:
*/
*/
uint8_t
*
macAddress
(
uint8_t
*
mac
);
uint8_t
*
macAddress
(
uint8_t
*
mac
);
String
macAddress
(
void
)
{
String
macAddress
(
void
)
{
uint8_t
mac
[
8
];
uint8_t
mac
[
6
];
macAddress
(
mac
);
macAddress
(
mac
);
char
buff
[
32
];
char
buff
[
32
];
sprintf
(
buff
,
"%02x:%02x:%02x:%02x:%02x:%02x"
,
mac
[
0
],
mac
[
1
],
mac
[
2
],
mac
[
3
],
mac
[
4
],
mac
[
5
]);
sprintf
(
buff
,
"%02x:%02x:%02x:%02x:%02x:%02x"
,
mac
[
0
],
mac
[
1
],
mac
[
2
],
mac
[
3
],
mac
[
4
],
mac
[
5
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment