Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
also allow unaligned copies while we are here
  • Loading branch information
mcspr committed Jan 20, 2023
commit 553e5c99b007926f7975f5d3c1929d47db122b8a
4 changes: 2 additions & 2 deletions cores/esp8266/IPAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ bool IPAddress::fromString4(const char *address) {

IPAddress& IPAddress::operator=(const uint8_t *address) {
uint32_t value;
std::memcpy(&value, address, sizeof(value));
memcpy_P(&value, address, sizeof(value));

*this = value;
return *this;
Expand All @@ -125,7 +125,7 @@ bool IPAddress::operator==(const uint8_t* addr) const {
}

uint32_t value;
std::memcpy(&value, addr, sizeof(value));
memcpy_P(&value, addr, sizeof(value));

return v4() == value;
}
Expand Down