Skip to content

Commit d5ae3fa

Browse files
committed
Add operator != to IPAddress
Fixes arduino/Arduino#7336
1 parent 3c3b27e commit d5ae3fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: api/IPAddress.h

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class IPAddress : public Printable {
5252
// to a four-byte uint8_t array is expected
5353
operator uint32_t() const { return _address.dword; };
5454
bool operator==(const IPAddress& addr) const { return _address.dword == addr._address.dword; };
55+
bool operator!=(const IPAddress& addr) const { return _address.dword != addr._address.dword; };
5556
bool operator==(const uint8_t* addr) const;
5657

5758
// Overloaded index operator to allow getting and setting individual octets of the address

0 commit comments

Comments
 (0)