Skip to content

Commit

Permalink
Merge pull request #384 from pennam/unor4-mac-len
Browse files Browse the repository at this point in the history
WiFiS3: add WL_MAC_ADDR_LENGTH definition
  • Loading branch information
pennam authored Nov 20, 2024
2 parents 273873d + f0251e0 commit 936a7eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 936a7eb

Please sign in to comment.