Skip to content

Commit b91fcd8

Browse files
committed
Remove superfluous get_mac_address call
1 parent 538ec18 commit b91fcd8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/WiFi.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,12 +737,11 @@ void WiFiClass::end()
737737

738738
uint8_t *WiFiClass::macAddress(uint8_t *mac)
739739
{
740-
m2m_wifi_get_mac_address(mac);
741-
byte tmpMac[6], i;
740+
byte tmpMac[6];
742741

743742
m2m_wifi_get_mac_address(tmpMac);
744-
745-
for(i = 0; i < 6; i++)
743+
744+
for(int i = 0; i < 6; i++)
746745
mac[i] = tmpMac[5-i];
747746

748747
return mac;

0 commit comments

Comments
 (0)