EtherCard::begin(): support reading MAC address from PROGMEM#399
EtherCard::begin(): support reading MAC address from PROGMEM#399nuno-silva wants to merge 1 commit intonjh:masterfrom
Conversation
|
@nagimov please test :) Make sure at least the ntpClient example runs correctly, as well as some other random example that does not place the MAC in PROGMEM. |
|
Tested example https://github.com/njh/EtherCard/blob/master/examples/ntpClient/ntpClient.ino with ntp server changed to When mymac is assigned without PROGMEM everything works, dhcp gets ip, ntp syncs ok, reported mac matches the one specified. When mymac is assigned with PROGMEM everything works as well, however reported mac (observed at the router side) in this case is always |
|
I think I found the issue. I tried implementing it in a similar way before falling back to optional Not sure if that's a bug or intended behavior of avr compiler. My board setup: |
|
@nagimov thanks for testing. I'll have to investigate it further :/ |
|
The The hence why it works when overloading the String constructor, the print method, etc: However, since this depends on the Therefore, I'll re-implement this using the |
fixes #397 (ntpClient example)
closes #398