Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFiS3: add WL_MAC_ADDR_LENGTH definition #384

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/WiFiS3/src/WiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static bool macStr2macArray(uint8_t *mac_out, const char *mac_in) {
return false;
}

for(int i = 0; i < 6; i++) {
for(int i = 0; i < WL_MAC_ADDR_LENGTH; i++) {
std::string str_num(mac_in+(i*3),2);
*(mac_out+i) = std::stoul(str_num,nullptr,16);
}
Expand Down
1 change: 1 addition & 0 deletions libraries/WiFiS3/src/WiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@


#define WIFI_FIRMWARE_LATEST_VERSION "0.4.1"
#define WL_MAC_ADDR_LENGTH 6

class CAccessPoint {
public:
Expand Down
Loading